What are you doing with void pointers Jow Forums?

What are you doing with void pointers Jow Forums?

Attached: 1509869770506_0.jpg (694x1000, 78K)

Other urls found in this thread:

godbolt.org/g/J2UHyo
twitter.com/NSFWRedditVideo

meh, i didn't know those were real. brb learning stuff

void *ptr = &ptr;

Attached: 1443939505631.jpg (1920x1080, 90K)

Does it explode?

I cast them

No. It works perfectly fine and is valid.

I hash them

everything

i stick my tongue in them and cuddle close :3

Doesn't the RHS evaluate first?

God I wish I was a void pointer

void* ptr is declared and put on stack
&ptr is some address on stack
after assignment ptr points to this address
godbolt.org/g/J2UHyo

I can cast you into one

Passing them to a function and casting them

void *ptr = (void *) malloc(sizeof(void));

Attached: 1508501170762.png (1600x900, 875K)

malloc returns a void pointer

doesn't compile everywhere
void is considered an incomplete type, sizeof can't be applied to incomplete types

Making macro soup.

this

i understand this is a joke, but i get a feeling that you unironically believe that you need to recast from malloc lmao

cute lesbians

Attached: 1527730554476.jpg (700x1286, 354K)