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
How do you print an address?
Why c is faster than c++?
What is pointer and structure in c?
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
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
What does the message "automatic aggregate intialization is an ansi feature" mean?
write a program to print data of 5 five students with structures?
What is a volatile keyword in c?
What does dm mean sexually?
What are high level languages like C and FORTRAN also known as?
There seem to be a few missing operators ..
What are the types of variables in c?
What are the properties of union in c?
hi send me sample aptitude papers of cts?
What is the g value paradox?