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 |
Find greatest of two numbers using macro
"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above
I have one doubt. What does below statement mean? #define sizeof(operator) where operator can be int or float etc. Does this statement meaningful and where it can be used?
Can a pointer point to null?
What is calloc in c?
Did c have any year 2000 problems?
Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix
What are the advantages of using macro in c language?
What are the disadvantages of external storage class?
can we print any string in c language without using semicolon(;)(terminator) in whole program.
how to implement stack operation using singly linked list
Is c weakly typed?