int main(){ int a =34; int*ptr=NULL; if(ptr!=NULL){ printf("address of a is %d\n",*ptr); } else{ printf("the pointer is a null pointer and cannot be dereferenced"); } 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