int main(){ int a=76; int *ptra=&a; printf("address of pointer to a is %p\n",&ptra); printf("address of a is %p\n",&a); printf("address of a is %p\n",ptra); printf("value of a is %d\n",*ptra); printf("value of a is %d\n",a); 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