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

disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

0 Answers  


What is difference between array and pointer in c?

0 Answers  


What is the symbol indicated the c-preprocessor?

0 Answers  


difference between my-strcpy and strcpy ?

3 Answers   Geometric Software, IIM, Infosys,


Why is C language being considered a middle level language?

0 Answers  






1 1 2 1 2 3 1 2 3 4 1 2 3 1 2 1 generate this output using for loop

2 Answers  


write a own function to compare two strings with out using stringcomparition function?

6 Answers   LG Soft, Sasken,


How many bytes is a struct in c?

0 Answers  


program to find the magic square

1 Answers   Infosys,


Explain the priority queues?

0 Answers  


write a program structure to find average of given number

1 Answers  


Tell me about low level programming languages.

0 Answers   Amdocs,


Categories