I would like to know how it processed the output.....Code:#include <stdio.h> #include <stdlib.h> int main() { int *a, *s, i; s = a = (int *) malloc(4 * sizeof(int)); for(i = 0; i < 4; i++) { *(a + i) = i * 10; /* a[i] = i * 10 */ } printf("*s++ = %d\n", *s++); /* output: 0 */ printf("(*s)++ = %d\n", (*s)++); /* output: 10 */ printf("*s = %d\n", *s); /* output: 11 */ printf("*++s = %d\n", *++s); /* output: 20 */ printf("++*s = %d\n", ++*s); /* output: 21 */ getchar(); return 0; }
thanks.