Frequently asked questions

  1. What is a NULL Pointer? Whether it is same as an uninitialized pointer?

Null pointer is a pointer which points to nothing but uninitialized pointer may point to


  1. What is a pointer?

Pointers are variables which stores the address of another variable. That variable may be a scalar (including another pointer), or an aggregate (array or structure). The pointed-to object may be part of a larger object, such as a field of a structure or an element in an array.

  1. What is null pointer?

NULL pointer is a pointer which is pointing to nothing.


int *ptr=(char *)0;

Float *ptr=(float *)0;

  1. How are pointer variables initialized?

Pointer variable are initialized in two ways:

Static memory allocation

Dynamic memory allocation

  1. What is “&” and “*” operators in C?

“*” Operators is used as pointer to a variable. Example: * a where * is pointer to the variable a.

& operator is used to get the address of the variable. Example: &a will give address of a.