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
What is storage class?
what are # pragma staments?
What is the use of printf() and scanf() functions?
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
Which built-in library function can be used to match a patter from the string?
Explain low-order bytes.
What is the return type of sizeof?
i have a written test for microland please give me test pattern
Explain main function in c?
How can I sort more data than will fit in memory?
How many bytes is a struct in c?
Does * p ++ increment p or what it points to?
Is c++ based on c?
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
What is the modulus operator?