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 a sequential access file?
define string ?
I need testPalindrome and removeSpace
#include
write a program for the normal snake games find in most of the mobiles.
What are the Advantages of using macro
How is pointer initialized in c?
What is the use of a conditional inclusion statement in C?
Explain how can you restore a redirected standard stream?
What is a macro?
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
What does %p mean c?
what is uses of .net
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
Explain how to reverse singly link list.
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above