C Functions Questions and Answers
Practice ModeShowing 10 of 151 questions
Q61
Find the output
void main ( )
{
printf("%u",main));
}
Answer: Option C
Q62
Find the output
void main ()
{
show (5);
}
show (int x)
{
static int i=1;
while (i++<5)
{
show (++x);
printf("%d",x);
}
Answer: Option B
Q63
Find the output
void main ()
{
int pascal show (int);
show (5);
}
pascal show (int x, int y)
{
printf ("%d %d", x,y);
}
Answer: Option C
Q64
A functions return type may not be
Answer: Option A
Q65
Find the output
void main ()
{
int x=10;
x=callme (x);
printf("%d",x);
}
callme (int x)
{
int i=5;
x=x/2-3;
return x,i;
}
Answer: Option B
Q66
Find the output
void main ( )
{
int i =5;
printf ("i=%d", i);
show ( );
printf ("i=%d",i);
}
show ( )
{
int i;
i=1;
return i;
}
Answer: Option A
Q67
Find out the false statement
Answer: Option C
Q68
Find the output
int x=5;
{
int *p;
int *find( );
p=find ( );
printf("%d", *p);
}
int *find ( )
{
int x=10;
return &x;
}
Answer: Option A
Q69
Find the output
int main (int x)
{
if (k<10)
printf("%d ",main (k+1));
return k;
}
Answer: Option B
Q70
Find the output
void main ( )
{
int i=1;
while (i++<5)
printf("%d", call (i));
}
call (int i)
{
return --i;
}
Answer: Option A