Monday, August 3, 2009

pointers variable types

#include
main()
{
int j=10,*ptr1;
void *ptr2;
ptr1=&j;ptr2=&j;
printf("%d %d ",*ptr1,ptr2);
getch();
}
output:
10 and some memory address..
note:we can not print the value of "ptr2"....it is not a allowed function type.

No comments:

Post a Comment