What is the difference between null pointer and the void
pointer?
Answers were Sorted based on User's Feedback
Answer / vignesh1988i
NULL POINTER:
this pointer returns null value to the main function......
it cant be type casted.........
VOID POINTER:
this pointer has a special advantages that it can point
to any value (int , char, float etc) when its type casted
for eg:
main()
{
char *p;
int n;
(int *)p=&n;
so on the above character pointer is been type casted to
point an integer value n;
Is This Answer Correct ? | 11 Yes | 3 No |
Answer / sunitha
null pointer : used to compair a pointer to any object or
a function and returns a null value to the main function.
void pointer : void pointer ia pointer which does not have
any return type and it can be easily type casted with other
type of pointers.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / vaibhav
null pointer contain null value . it doesn't contain any
value.
while void pointer is a pointer that cascade at a runtime.
i.e it casting at runtime
Is This Answer Correct ? | 3 Yes | 3 No |
what is the hexidecimal number of 4100?
What does nil mean in c?
What is the difference between static and global variables?
Read N characters in to an array . Use functions to do all problems and pass the address of array to function. 1. Print only the alphabets . If in upper case print in lower case vice versa.
What are the valid places to have keyword “break”?
How can I change their mode to binary?
What is the significance of scope resolution operator?
0 Answers Agilent, ZS Associates,
Explain what are the standard predefined macros?
how to introdu5ce my self in serco
Write a program that his output * *** *****
What is bubble sort in c?
What is the Difference between Class and Struct?