What is Generic pointer? What is the purpose of Generic
pointer? Where it is used?
Answers were Sorted based on User's Feedback
Answer / veluri.haritha
It is a pointer to hold the address of variable of any data
type.it can be declared using void data type .It is used in
memory allocation functions etc.....
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / kiran kumar yakkala
generic pointer- generally "void" used for generic
no specification of data type
if u dont know the data type specification at the time
of any funciton or datatype declaration, generally go for
generaic(void) .
but it needs a "type conversion" for further usage
mind that "void" pointer never be incremented or
decremented, after type conversion only u should go for
that.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / rambabu
generic pointer is a pointer and it accept any data
type.suppose u give int as the our data type but u give
float as the value to the program then it will accept
| Is This Answer Correct ? | 0 Yes | 2 No |
what is the purpose of the code, and is there any problem with it. unsigned int v[10]; unsigned int i = 0; while (i < 10) v[i] = i++;
Write a program on swapping (100, 50)
What is external and internal variables What is dynamic memory allocation what is storage classes in C
What is the use of the function in c?
What is a C array and illustrate the how is it different from a list.
a linear linked list such that the link field of its last node points to the first node instead of containing NULL a) linked list b) circular linked list c) sequential linked list d) none
What is the output for the below program? void main() { float me=1.1; double you=1.1; if(me==you) printf("love c"); else printf("know c"); }
How are strings stored in c?
What is boolean in c?
How can I read and write comma-delimited text?
how to create c progarm without void main()?
What is queue in c?