What is the difference between null pointer and void pointer

Answer Posted / siva prasad

A null pointer is a value. It is a special reserved value used to indicate that the pointer is not pointing to anything conceptually.
A void pointer is a type of pointer, void* . It is used to indicate that the storage location pointed to by the pointer has no specific type.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier.  Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed.  When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed.  Sequence of take-off is the sequence of addition to the waitlist

2510


How is a null pointer different from a dangling pointer?

549


Where are c variables stored in memory?

590


How can you tell whether a program was compiled using c versus c++?

613


What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?

599






write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

2256


How can I find out if there are characters available for reading?

633


Why is structure padding done in c?

635


How is a pointer variable declared?

583


What is the difference between fread and fwrite function?

629


Which control loop is recommended if you have to execute set of statements for fixed number of times?

803


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

660


What is the difference between array and pointer?

559


What is the use of linkage in c language?

604


What are static variables in c?

616