0

 A null pointer represents the empty location in the computer’s memory. It is used in C for various purposes:

  • It will assign the pointer variable to the variable with no assigned memory
  • In pointer related code we can do error handling by checking null pointer before assigning any pointer variable
Shathana. S.R. Asked question April 28, 2023