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"
I know that
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.