What is the difference between null pointer and void pointer
Answer Posted / nagarala sai deepak reddy
NULL POINTER :
the pointer which dosent point to any memory location is
called NULL POINTER.
VOID POINTER :
the pointer is a one which can only point to a particular
memory location of it's own type.... but when the pointer
is given void it can be mde to point any location of
different type
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Are there any problems with performing mathematical operations on different variable types?
Explain indirection?
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
What is the use of void pointer and null pointer in c language?
What is the code in while loop that returns the output of given code?
What is the best organizational structure?
Why do we write return 0 in c?
Is there a way to switch on strings?
The statement, int(*x[]) () what does in indicate?
Why can’t constant values be used to define an array’s initial size?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
Explain that why C is procedural?
How can I write a function analogous to scanf?
When should you use a type cast?
What is the difference between text and binary modes?