what is a void pointer?
Answers were Sorted based on User's Feedback
Answer / karthik
void *p;
its void pointer.
it can point to any pointer like int*,char*,etc....
that is use of void*.
| Is This Answer Correct ? | 3 Yes | 2 No |
int a=1,b=2,c=3; printf("%d,%d",a,b,c); What is the output?
What does stand for?
if the address of a[1,1] and a[2,1] are 1000 and 1010 respectively and each occupies 2 bytes then the array has been stored in what order?
4 Answers Amazon, Apple, Bata, Google, NASA,
What are the application of void data type in c?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
Why doesn't C have nested functions?
What is else if ladder?
main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }
main() { char as[] = "\\0\0"; int i = 0; do{ switch( as[i++]) {case '\\' : printf("A"); break; case 0 : printf("B"); break; default : printf("C"); break; }} while(i<3); }
4 Answers Vector, Vector India,
Why c is called free form language?
a C prog to swap 2 no.s without using variables just an array?
Tell me when is a void pointer used?