Hi
You have got it wrong. The following program below should show it.
++++++++++++++++++++++++++++++++++++++++++++++
Code:
#include<stdio.h>
#include<conio.h>

main(){
	unsigned int  num =100;
	unsigned int *ptr=&num;

	printf("%d\n",num);
	
	//if (ptr!=&num){
	//	printf("Something is wrong");
	//}
	printf("&num:%d\n",&num);
	printf("ptr:%d\n",ptr);
	getchar();
}
++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++

Last edited by shabbir; 16Nov2011 at 16:43.. Reason: Code blocks