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

How do you print an address?

1208


Why c is faster than c++?

975


What is pointer and structure in c?

1069


Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..

986


This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory

1199


What does the message "automatic aggregate intialization is an ansi feature" mean?

1142


write a program to print data of 5 five students with structures?

2004


What is a volatile keyword in c?

1111


What does dm mean sexually?

1259


What are high level languages like C and FORTRAN also known as?

1105


There seem to be a few missing operators ..

1003


What are the types of variables in c?

978


What are the properties of union in c?

994


hi send me sample aptitude papers of cts?

2105


What is the g value paradox?

1104