C Language - Functions

You Are Here :: Home > C Language > Functions - General Questions

 
55.

main()

{
int i;
printf("In the year of lord \n");
for(i=1;i40)
return(!m++);
else
return(!++m);
}

A. 40 B. 42
C. 0 D. Error message




56.

main()

{
int i=45;
float c;
c=check(i);
printf("c=%f", c);
}
check(ch)
int ch;
{
ch>=45 ? return(3.14) : return(6.28);
}

A. 3.000000 B. 15.000000
C. 13.000000 D. 6.000000




57.

How many time the following function be called

main( )
{
int j;
j=10;
fun(j);
}
fun(int j)
{
if(j!=5)
fun(j-1);
}

A. 10 times B. 5 times
C. 6 times D. Infinite loop




« previous

10

 
 
 



© 2013 freshersindia.in ® | Copyrights | Terms & Conditions
   Designed by Freshers India
Catch Us on