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);



Suppose I want to write a function that takes a generic pointer as an argument and I want to simula..

Answer / 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

More C Interview Questions

What are the application of c?

0 Answers  


What do you mean by recursion in c?

0 Answers  


GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)

0 Answers  


Which sorting algorithm is the best?

1 Answers  


a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above

0 Answers  


Why is sizeof () an operator and not a function?

0 Answers  


give one ip, find out which contry

4 Answers   Google,


What is LINKED LIST? How can you access the last element in a linked list?

0 Answers   ADP,


please give me some tips for the selection in TCS.

3 Answers   TCS,


List some basic data types in c?

0 Answers  


WRITE A C PROGRAM TO FIND SECOND BIGGEST VALUE FROM THE GIVEN VALUES

1 Answers  


WHAT IS PRE POSSESSORS?

6 Answers   TATA,


Categories