C Language - Wild Pointer
#include <stdio.h>
#include <conio.h>
int main()
{
int shan = 1939;
int *you;
// This is a Wild pointer.
you= 343;
// This is not a good thing which we are doing.
you = &shan;
// the pointer is no longer wild pointer and we can now use this pointer. Here we //go,..
printf ("The address of shan is %d\n", shan);
return 0;
}
// ScreenShots:
Comments
Post a Comment