For what purpose null pointer used?



For what purpose null pointer used?..

Answer / Adesh Kumar Singh

A null pointer is used in C to represent an uninitialized, undefined, or non-existent value. It is denoted by the constant NULL or (void*)0. It is primarily used for initializing pointers and checking if a pointer points to a valid memory location.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

what are # pragma staments?

1 Answers  


what is the use of bitfields & where do we use them?

2 Answers  


what does data structure mean?

8 Answers  


How the c program is executed?

1 Answers  


difference between object file and executable file

1 Answers  


WAP – represent a char in binary format

4 Answers   Motorola, Wipro,


Consider a language that does not have arrays but does have stacks as a data type.and PUSH POP..are all defined .Show how a one dimensional array can be implemented by using two stacks.

3 Answers   Google,


sir i wanted to know how we wap in c to add numbers without using arithmetic operator in which digits are entered by user?

2 Answers  


int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer

1 Answers  


what is difference between c and c++

4 Answers  


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

2 Answers  


How can I read a directory in a c program?

1 Answers   CSC,


Categories