#include <stdio.h>
int main() {
char *c = "test";
while (*c != '\0') {
printf("%c", *c);
*c++; // or c++ both produced same result. ie test
}
return 0;
}
As *c++ should increase value and c++ should increase pointer address. But both are increasing pointer why?