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 are volatile variables?

1 Answers   Mind Tree,


What does #pragma once mean?

0 Answers   Celstream,


If the size of int data type is two bytes, what is the range of signed int data type?

0 Answers  


What is the benefit of using const for declaring constants?

0 Answers  


Write a C program to read the internal test marks of 25 students in a class and show the number of students who have scored more than 50% in the test. Make necessary assumptions.

1 Answers  






What will be the result of the following program? char*g() { static char x[1024]; return x; } main() { char*g1="First String"; strcpy(g(),g1); g1=g(); strcpy(g1,"Second String"); printf("Answer is:%s", g()); } (A) Answer is: First String (B) Answer is: Second String (C) Run time Error/Core Dump (D) None of these

2 Answers   Oracle,


When is a void pointer used?

0 Answers  


What is null in c?

0 Answers  


How do you write a program which produces its own source code as output?

0 Answers  


What is volatile variable in c with example?

0 Answers  


Which is better oop or procedural?

0 Answers  


What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.

0 Answers  


Categories