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 |
void main() { int a[]={1,2,3,4,5},i; for(i=0;i<5;i++) printf("%d",a++); getch(); }
What is structure padding and packing in c?
compute the nth mumber in the fibonacci sequence?
10 Answers Canon, HPL, Satyam, TCS,
explain what is fifo?
What's a "sequence point"?
If the static variable is declared as global, will it be same as extern?
What is the most efficient way to store flag values?
define string ?
What is difference between Structure and Unions?
related to rdbms query .
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
5 Answers TCS, Vimukti Technologies,
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles