C Functions Questions and Answers
Practice ModeShowing 10 of 151 questions
Q81
size of a function is known as
Answer: Option C
Q82
Return value of a funtion stores in
Answer: Option A
Q83
Any function return value is stored in which register.
Answer: Option D
Q84
Find the output
void main ( )
{
int x=10, y=20, p,q;
p=add (x,y);
q=add (x,y);
printf("%d %d", p,q);
}
add (int a, int b)
{
a+=a; b+=b;
return (a);
return (b);
}
Answer: Option B
Q85
Forward communication is only possible through
Answer: Option D
Q86
storage class of a function is defined when
Answer: Option B
Q87
Find the output
void main ()
{
int x=5, y=6;
change (&x, &y);
prrintf("%d %d", x,y);
}
change (int *x, int *y)
{
int temp=1;
temp^=*x;
*x^=*y;
*y^=temp;
}
Answer: Option C
Q88
Find the output
void main ()
{
int i=2;
printf("%d", see (i));
}
see (i)
{
return i*i;
}
Answer: Option C
Q89
Which of the following is true?
Answer: Option D
Q90
Find the output
void main ()
{
int x[5];
see (x);
printf("%d", x[2]);
}
see (int x[ ] )
{
x++;
x[1]=100;
}
Answer: Option A