Thursday, December 25, 2008

Near pointer in C program Questions with Answers


Q. what will be output ?
#include
void main()
{
int a=5,i;
int *ptr; //by default it is near pointer.
ptr=&a;
for(i=0;i<300;i++)
{
printf(“\n %p”,ptr);
p++;
delay(100);
}
}

No comments:

Blog List