When is a null pointer used?



When is a null pointer used?..

Answer / Mahak Singh

A null pointer, denoted by NULL or (void*)0, is a special value used to indicate that a pointer does not point to any valid object or memory location. It is often used when initializing pointers or when checking if a pointer is valid.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Explain what are linked list?

1 Answers  


1. Write a program to reverse every second word in a given sentence.

1 Answers  


Which weighs more, a gram of feathers or a gram of gold?

2 Answers  


How can you increase the allowable number of simultaneously open files?

1 Answers  


The program to allow the characters from the input received and send this function to a function check if the characters between letters a to z is a function of y joins as the characters main and output to otherwise return to the original function of the y characters

0 Answers  


What are register variables? What are the advantage of using register variables?

1 Answers   TISL,


what is d pitfalls of registers variables

3 Answers   TCS,


Sir i want e-notes of C languge of BAlaguruswami book i.e scanned or pdf file of balaguruswamy book on c language.PLEASE SEND ME on my mail id ajit_kolhe@rediff.com

8 Answers  


write a addition of two no. program with out using printf,scanf,puts .

4 Answers  


How many levels of indirection in pointers can you have in a single declaration?

1 Answers   Agilent, ZS Associates,


Explain the red-black trees?

1 Answers  


Is register a keyword in c?

1 Answers  


Categories