ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
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);
 Question Submitted By :: Roja
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
why **??

function that takes generic pointer argument.
declare pointer as void * 

void f(void *);
 
Is This Answer Correct ?    0 Yes 0 No
Shruti_kamthe
[UBICS]
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
what is the function of void main()?  6
How we add our function in liabrary as liabrary function. Exp. we want use our int factorical(int); function as int pow(int,int); function working in math header file.  1
totally how much header files r in c language TCS4
write a Program to dispaly upto 100 prime numbers(without using Arrays,Pointer) Wipro7
main() { int i=1; while (i<=5) { printf("%d",i); if (i>2) goto here; i++; } } fun() { here: printf("PP"); } ME3
Reverse the part of the number which is present from position i to j. Print the new number. eg: num=789876 i=2 j=5 778986  1
what's the o/p int main(int n, char *argv[]) { char *s= *++argv; puts(s); exit(0); } Motorola1
char ch=10;printf("%d",ch);what is the output Accenture11
Look at the Code: #include<string.h> void main() { char s1[]="abcd"; char s2[10]; char s3[]="efgh"; int i; clrscr(); i=strcmp(strcat(s3,ctrcpy(s2,s1))strcat(s3,"abcd")); printf("%d",i); } What will be the output? A)No output B) A Non Integer C)0 D) Garbage Accenture5
Write a program to accept a character & display its corrosponding ASCII value & vice versa?  4
1)which of following operator can't be overloaded. a)== b)++ c)?! d)<= Siemens10
which one is highest Priority in c? a)=,b)+,c)++,d)==  3
Give a fast way to multiply a number by 7 Microsoft8
what is the size of an integer variable?  1
how to find string length wihtout using c function?  4
How many ways are there to swap two numbers without using temporary variable? Give the each logic.  6
Toggle nth bit in a given integer - num Qualcomm2
write a program to compare 2 numbers without using logical operators? IBM1
can we print any string in c language without using semicolon(;)(terminator) in whole program.  6
write the function int countchtr(char string[],int ch);which returns the number of timesthe character ch appears in the string. for example the call countchtr("she lives in Newyork",'e') would return 3.  4
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com