what is void pointer?

Answers were Sorted based on User's Feedback



what is void pointer?..

Answer / rajesh

Void pointer is the
pointer which itself is
null and can not be
interchanged by others.
Ex-
{
int *a;
void *b;

*a=*b; //valid
a=b; //invalid
}

Is This Answer Correct ?    2 Yes 0 No

what is void pointer?..

Answer / sanjay bhosale

Void pointer is the pointer which can point to any type of variable.
e.g
int a=10;
float b=20.00f;
void *ptr=null;
ptr = &a;
ptr = &b;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is the use of sizeof () in c?

0 Answers  


What is void c?

0 Answers  


What library is sizeof in c?

0 Answers  


What does it mean when a pointer is used in an if statement?

0 Answers  


Why is conio.h not required when we save a file as .c and use clrscr() or getch() ?

2 Answers  






What are type modifiers in c?

0 Answers  


write a prgram of swapping with 2 valiables

6 Answers  


What is structure in c definition?

0 Answers  


write a program of bubble sort using pointer?

3 Answers   TCS,


how to write a prog in c to convert decimal number into binary by using recursen function,

1 Answers  


1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

1 Answers  


a linear linked list such that the link field of its last node points to the first node instead of containing NULL a) linked list b) circular linked list c) sequential linked list d) none

0 Answers  


Categories