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


Please Help Members By Posting Answers For Below Questions

Explain bitwise shift operators?

621


What is a 'null pointer assignment' error?

714


What is assert and when would I use it?

572


Can we declare function inside main?

558


Explain a pre-processor and its advantages.

612






What is "Duff's Device"?

695


What's the right way to use errno?

611


What are the __date__ and __time__ preprocessor commands?

561


Write a program to find factorial of a number using recursive function.

633


Who is the founder of c language?

671


Why is c called c not d or e?

600


GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA

1422


In a header file whether functions are declared or defined?

625


Write a program to use switch statement.

652


What is malloc() function?

628