Hello All,
I have small doubt in pointer, doubt as follows:-

Code:
int a;
int *ptr;
ptr = &a;
printf("%d", &a);
printf("%d", ptr);
i have check in my VC++ compiler output is 1245052 1245052.

Now if i modify above code as follows:

Code:
int a;
int *ptr;
ptr = 1245052;
printf("%d", ptr);
Above code can't compile why?even though i am applying valide address of a.

Thanks in advance
Shwetha