Hello All,
I have small doubt in pointer, doubt as follows:-
i have check in my VC++ compiler output is 1245052 1245052.Code:
int a;
int *ptr;
ptr = &a;
printf("%d", &a);
printf("%d", ptr);
Now if i modify above code as follows:
Above code can't compile why?even though i am applying valide address of a.Code:int a;
int *ptr;
ptr = 1245052;
printf("%d", ptr);
Thanks in advance
Shwetha