cnlwhs

joined 1 year ago
[–] cnlwhs@lemmy.blahaj.zone 2 points 5 months ago* (last edited 5 months ago)
69
i[arr] rule (lemmy.nz)
submitted 5 months ago* (last edited 5 months ago) by cnlwhs@lemmy.blahaj.zone to c/onehundredninetysix@lemmy.blahaj.zone
 
#include <stdio.h>

int
main()
{
  int arr[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
  int i = 3;
  printf("%d\n", i[arr]);
  return 0;
}

If you index an integer with an array in C, it gives you the same result as when you index an array with an integer. This is because array indexing is equivalent to pointer arithmetic. i'th member of arr equals to arr plus i equals to i plus arr equals to arr'th member of i.

[–] cnlwhs@lemmy.blahaj.zone 20 points 7 months ago (2 children)

Blähaj is a queer instance, so I kinda came out by joining this instance.

[–] cnlwhs@lemmy.blahaj.zone 8 points 7 months ago

I think blahaj is somehow broken currently. I can't see some images in this instance too.

 

alt textA twitter post picturing "boy's dress", made in 1865, England. Currently at L.A. County Museum of Art
Original post: https://x.com/wikivictorian/status/2009354422900441332

[–] cnlwhs@lemmy.blahaj.zone 3 points 7 months ago (1 children)

유머도 못 알아듣는 바보여서 정말 죄송해요...

[–] cnlwhs@lemmy.blahaj.zone 2 points 7 months ago* (last edited 7 months ago) (3 children)

Also you can use translators which is what I use when reading non-English foreign articles.

[–] cnlwhs@lemmy.blahaj.zone 1 points 8 months ago

You should recognise that meanings of words might not always match your inner dictionary. "Private Property" is used differently from "Personal Property" in a lot of places.

[–] cnlwhs@lemmy.blahaj.zone 1 points 8 months ago

You're wrong because I have absolutely no knowlege about the term you're using!

[–] cnlwhs@lemmy.blahaj.zone 1 points 8 months ago* (last edited 8 months ago)
[–] cnlwhs@lemmy.blahaj.zone 8 points 8 months ago* (last edited 8 months ago) (13 children)

Sees an anarchist

"Tankie"

???

[–] cnlwhs@lemmy.blahaj.zone 1 points 8 months ago* (last edited 8 months ago)

In capitalism we keep doubling them and people still die

[–] cnlwhs@lemmy.blahaj.zone 18 points 8 months ago* (last edited 8 months ago)

It causes segfault and dumps core which then becomes the second Earth.

349
trolley rule (lemmy.nz)
submitted 8 months ago* (last edited 8 months ago) by cnlwhs@lemmy.blahaj.zone to c/onehundredninetysix@lemmy.blahaj.zone
 

edit: alt text

173
submitted 8 months ago* (last edited 8 months ago) by cnlwhs@lemmy.blahaj.zone to c/onehundredninetysix@lemmy.blahaj.zone
view more: next ›