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

Method Overloading exist in c ?

3 Answers   Wipro,


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

1 Answers   IBM,


write a program to concatenation the string using switch case?

0 Answers  


What is the purpose of macro in C language?

0 Answers   Fidelity,


How to explain the final year project as a fresher please answer with sample project

0 Answers  






Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

1 Answers  


What is a pointer variable in c language?

0 Answers  


What is the argument of a function in c?

0 Answers  


do u print this format '(((())))'. This brackets is based on user input like 4 or 5 or 6,without using any loop's?

1 Answers   Oracle,


How to set a variable in the environment list?

1 Answers  


What math functions are available for integers? For floating point?

0 Answers  


What is the condition that is applied with ?: Operator?

0 Answers  


Categories