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 5:29 ID:e6k1G+U3

>>7
Because it's so efficient to search through a book and maybe find your answer than it is to ask someone a question and have them explain the answer to you.

Also, you can totally ask a book to clarify stuff for you.

gb2/bed/, Hal.

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