Well offensive coding methods: let us solve the problem first:
printf("%d\n",*(a++)); //this lines gives error: wrong type argument to increment
cannot be used since a is an implicit array reference;
You can do it:
char b[]={1,5,3,4,5,6}; char *a = b; printf("%d\n",*(a++));
and you go ...
Also *(a++) does NOT match *(a+1) , because ++ trying to change the operand, while + just adds the value of the constant a .
Ahmed masud
source share