Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Suppose I want to write a function that takes a generic
pointer as an argument and I want to simulate passing it by
reference. Can I give the formal parameter type void **, and
do something like this?

void f(void **);
double *dp;
f((void **)&dp);

Answer Posted / shruti_kamthe

why **??

function that takes generic pointer argument.
declare pointer as void *

void f(void *);

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

1291


Explain null pointer.

1104


Write a program to use switch statement.

1125


What are static variables in c?

1075


What does %c do in c?

979


Can we declare a function inside a function in c?

1030


What is a good way to implement complex numbers in c?

1044


Tell me what are bitwise shift operators?

1130


Why is c known as a mother language?

1233


How do I convert a string to all upper or lower case?

1100


What is ctrl c called?

1038


Explain how can I make sure that my program is the only one accessing a file?

1215


Explain the use of #pragma exit?

1170


Differentiate between static and dynamic modeling.

1093


How can you increase the allowable number of simultaneously open files?

1146