What is Generic pointer? What is the purpose of Generic
pointer? Where it is used?

Answers were Sorted based on User's Feedback



What is Generic pointer? What is the purpose of Generic pointer? Where it is used?..

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

What is Generic pointer? What is the purpose of Generic pointer? Where it is used?..

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

What is Generic pointer? What is the purpose of Generic pointer? Where it is used?..

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

Post New Answer

More C Interview Questions

Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

0 Answers   TATA, TCS,


What is the difference between CV and Resume ?

2 Answers  


Q.11 Generate the following pattern using code in any language(c/c++/java) for n no. of rows 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

2 Answers  


Not all reserved words are written in lowercase. TRUE or FALSE?

0 Answers  


How can you increase the size of a dynamically allocated array?

0 Answers   TISL,






Write a program to use switch statement.

0 Answers   Agilent, Integreon, ZS Associates,


4)What would be the output? main() { int num=425; pf("%d",pf("%d",num)); } a)Comp error b)4425 c)4253 d)3435 e)none

10 Answers  


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

0 Answers   Amazon,


What is modeling?

0 Answers  


Can we compile a program without main() function?

0 Answers  


Tell me when is a void pointer used?

0 Answers  


write a c programme for add of two numbers with out use of arthematic operators

2 Answers  


Categories