Code:Code:#include <stdio.h> int x=5; void f (int x) { printf("%d\n",x++); } void g (void) { static int x=0; printf("%d\n",x++); } int main(int argc, char** argv) { printf("%d\n",++x); { int x=4; printf("%d\n",x++); } g(); f(x); g(); return 0; }
The output value is:
6
4
0
6
1
Can anyone give me some advice?
Thanks