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

C pointer variables

Name: Anonymous 2009-06-15 12:13

Which is the better way to write them?


char* timmy = "hello\n";

or

char *timmy = "hello\n";

Name: Anonymous 2009-06-15 12:34

int i, j, *ip;
int* ip, i;

The first one makes sense. All of the following are of type int, i, j, and the thing that is behind the pointer *ip; With the second option, you imply that, sure, ip is of the type of pointer to int, but so is i.

grabs *dick;

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