what is void pointer?
Answers were Sorted based on User's Feedback
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 |
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 |
What should malloc() do?
Which is the memory area not included in C program? give the reason
write a function to swap an array a[5] elements like a[0] as a[5],a[1] as a[4],....a[5] as a[0].without using more than one loop and use one array not to use temp array?
What is the explanation for modular programming?
What is C++
Explain what is the difference between far and near ?
In C language what is a 'dangling pointer'?
There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side?
What is c basic?
Tell about strtok & strstr functions
2 Answers HCL, iFlex, Motorola,
How can I get random integers in a certain range?
Explain the term printf() and scanf() used in c language?