Pointer in C Language Questions and Answers

Read tutorials from Pointer in C Language


Question List:



Long Question Share

It’s a pointer variable which can hold the address of another pointer variable. It de-refers twice to point to the data held by the designated pointer variable.

Eg: int x = 5, *p=&x, **q=&p;


Therefore ‘x’ can be accessed by **q.



Long Question Share

A pointer initially holding valid address, but later the held address is released or freed. Then such a pointer is called as dangling pointer.



Long Question Share

A null statement is no executable statements such as ; (semicolon).

Eg: int count = 0; 
while( ++count<=10 ) ;


Above does nothing 10 times.