Pointer Basics

Write a C program to declare an integer variable and a pointer variable. Store the address of the integer variable in the pointer and display:

  • Value of variable
  • Address of variable
  • Value stored in pointer
  • Value pointed by pointer

Live Preview