#include <stdlib.h>
int main(){
int a=344;
int *ptr; // this is a wild pointer
// *ptr=34; // this is not a good thing to do
ptr=&a; // ptr is not longer a wild pointer
printf("value of a is %d\n",*ptr);
return 0;
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter