char *a[10];
a++;//lvalue reqd error..
i knw dt base address f array cnt be incremented.....


bt following code compiles succesfully....

int main(int argc, char *argv[])
{
printf("%s", *++argv);
}

can some one xplain why this is happening....
similarly....
int foo(int *blah[10])
{
    int *f[10];
    blah++; //no error
    f++;//error
}
whyyy....
does ds because an array as a function arg. decays into a
pointer.....???

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to