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

Baby's first pointer

Name: Anonymous 2011-01-24 20:18

Anyone kind enough to help a rookie out. What's the pointer (style?) equivalent of argv[0][1]? Consider the following code fragment executed with the following command "./test pointers"

int main(int argc, char *argv[])
{

    printf("argv[0][0] = %c\n", argv[0][1]);//prints 'e'
    printf("*(argv+?) = %c\n", *(argv+?));//What's the pointer equivalent of the above array?
    return 0;
}


I know that *(argv+1) and argv[1] are equivalent. And yeah, I already know that arrays are const pointers.

Name: Anonymous 2011-01-24 20:57

>>5
YOU MISSPELLED MY ANUS

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