Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

question about C arrays

Name: Anonymous 2007-04-07 16:32 ID:LoSQZFDz

Well, taking that this is true:

char buffer[] = "test";
buffer[1] == 1[buffer]; // ('e' == 'e')

I suppose that when you use [] it's like writting
buffer[1] == *(buffer+1);
so.. why i can't declare an array like

char *(buffer+10);
?

Name: Anonymous 2007-04-09 11:35 ID:nzkAielY

>>10
Dude, this is not the sort of thing you need to look up, it's the sort of thing you should ALREADY KNOW.

Quit trying to fucking redeem yourself. You asked a STUPID fucking question, and you deserve the shitstorm you're getting. Quit while you're behind and shut the fuck up.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List