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

What is meant by global static? why we have to use static variable instead of Global variable

4 Answers   L&T,


Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?

0 Answers  


What is "Hungarian Notation"?

0 Answers   Celstream,


What are the disadvantages of external storage class?

0 Answers  


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

0 Answers  


What are called c variables?

0 Answers  


i got 75% in all semester am i eligible for your company

0 Answers   Infosys,


What is the difference between CV and Resume ?

2 Answers  


how is the examination pattern?

0 Answers   Wipro,


What is sizeof return in c?

0 Answers  


64/square(4)

1 Answers  


which one is not preprocessor directive a)#if b)#elif c)#undef d)#pragma

16 Answers   Accenture, Infosys, TCS, Wipro,


Categories