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

What is storage class?

1120


what are # pragma staments?

2077


What is the use of printf() and scanf() functions?

1185


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1254


Which built-in library function can be used to match a patter from the string?

1347


Explain low-order bytes.

1092


What is the return type of sizeof?

1112


i have a written test for microland please give me test pattern

2777


Explain main function in c?

1134


How can I sort more data than will fit in memory?

1161


How many bytes is a struct in c?

1210


Does * p ++ increment p or what it points to?

1186


Is c++ based on c?

1128


main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above

1150


What is the modulus operator?

1253