C Language MCQ - English
How many times the program will print "Study 2 Online" ? #include<stdio.h>
int main()
{
printf("Study 2 Online");
main();
return 0;
}
Answer : D
Feel free to find and hire your online essay writer to help you with papers. AdvancedWriters will not let you down.
View More Related Question
1) Which library function returns number of seconds elapsed beyond a designated base time?
2) What will be the output of the program?#include<stdio.h>
int addmult(int ii, int jj)
{
int kk, ll;
kk = ii + jj;
ll = ii * jj;
return (kk, ll);
}
int main()
{
int i=3, j=4, k, l;
k = addmult(i, j);
l = addmult(i, j);
printf("%d, %d\n", k, l);
return 0;
}
3) Point out the error in the program f(int a, int b)
{
int a;
a = 20;
return a;
}
View Answer
4) What will be the output of the program?#include<stdio.h>
void fun(int);
typedef int (*pf) (int, int);
int proc(pf, int, int);
int main()
{
int a=3;
fun(a);
return 0;
}
void fun(int n)
{
if(n > 0)
{
fun(--n);
printf("%d,", n);
fun(--n);
}
}
5) What will be the output of the program?#include<stdio.h>
#include<stdlib.h>
int main()
{
int i=0;
i++;
if(i<=5)
{
printf("Study2Online");
exit(1);
main();
}
return 0;
}
View Answer