i use Visual c++ 2008 and when write thisit only shows 1245012Code:#include <stdio.h> int main(){ int x; for ( x=0;x<10;x++ ){ printf("%d \n",&x);} getchar();}
whats the problem???
i use Visual c++ 2008 and when write thisit only shows 1245012Code:#include <stdio.h> int main(){ int x; for ( x=0;x<10;x++ ){ printf("%d \n",&x);} getchar();}
whats the problem???
That is the address of variable x, which makes sense since you use the address of operator (&) and the address is not changed.
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge