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 |
what are # pragma staments?
what is the use of bitfields & where do we use them?
what does data structure mean?
How the c program is executed?
difference between object file and executable file
WAP – represent a char in binary format
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.
sir i wanted to know how we wap in c to add numbers without using arithmetic operator in which digits are entered by user?
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
what is difference between c and c++
Which weighs more, a gram of feathers or a gram of gold?
How can I read a directory in a c program?