C Language MCQ - English
What will be the output of the program?
#include<stdio.h>
int
Home | Discussion Forum
int
What will be the output of the program?#include<stdio.h>
int main()
{
int i=1;
if(!i)
printf("Study2Online,");
else
{
i=0;
printf("C-Program");
main();
}
return 0;
}
Answer : B
View More Related Question
1) Point out the error in the program f(int a, int b)
{
int a;
a = 20;
return a;
}
View Answer
2) Which library function returns number of seconds elapsed beyond a designated base time?
3) What will be the output of the program?#include<stdio.h>
int fun(int, int);
typedef int (*pf) (int, int);
int proc(pf, int, int);
int main()
{
printf("%d\n", proc(fun, 6, 6));
return 0;
}
int fun(int a, int b)
{
return (a==b);
}
int proc(pf p, int a, int b)
{
return ((*p)(a, b));
}
4) What will be the output of the program?#include<stdio.h>
int fun(int i)
{
i++;
return i;
}
int main()
{
int fun(int);
int i=3;
fun(i=fun(fun(i)));
printf("%d\n", i);
return 0;
}
5) Which of the following is not a library function: