Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between null pointer and the void
pointer?

Answers were Sorted based on User's Feedback



What is the difference between null pointer and the void pointer?..

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

What is the difference between null pointer and the void pointer?..

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

What is the difference between null pointer and the void pointer?..

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

Post New Answer

More C Interview Questions

Give me basis knowledge of c , c++...

5 Answers  


i want to asked a question about c program the question is: create a c program that displays all prime numbers less than 500? using looping statement

5 Answers  


Write a program to check whether a number is prime or not using c?

0 Answers  


for(;;) printf("C language") What is out put of above??

2 Answers   Practical Viva Questions,


Why doesn't C support function overloading?

2 Answers  


Can you please explain the difference between exit() and _exit() function?

0 Answers  


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

0 Answers  


how many errors in c explain deply

0 Answers  


What is the main difference between calloc () and malloc ()?

0 Answers  


How do I get an accurate error status return from system on ms-dos?

0 Answers  


Define C in your own Language.

0 Answers   Motorola,


What is a stream in c programming?

0 Answers  


Categories