what is void pointer?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

develop algorithms to add polynomials (i) in one variable

1727


What is malloc and calloc?

563


What is use of bit field?

759


What is time null in c?

572


How many levels deep can include files be nested?

642






Can you pass an entire structure to functions?

686


For what purpose null pointer used?

600


What is pass by value in c?

589


Explain the difference between #include "..." And #include <...> In c?

612


what will be the output for the following main() { printf("hi" "hello"); }

9297


What is an endless loop?

793


How old is c programming language?

565


How can I read/write structures from/to data files?

542


How can I get the current date or time of day in a c program?

643


Can one function call another?

619