c - Difference between ++*argv, *argv++, *(argv++) and *(++argv) -
currently learning c , trying head around these instructions. different?
++*argv *argv++ *(++argv) *(argv++)
thanks!
it's postfix increment operator has higher precedence pointer de-reference operator, not prefix increment. these 2 equivalent:
*p++ *(p++)
the prefix increment has same precedence *, *++p increments pointer, , same *(++p). also, ++*p same ++(*p).
c arrays pointers command-line-arguments
No comments:
Post a Comment