int main() { "> int main() { "> int main() { a) Infinite times b) 32767 times c) 65535 times d) Till stack overflows"> How many times the program will print "Study 2 Online" ?<pre> #include<stdio.h><br/> int main()<br/> {<br/>

How many times the program will print "Study 2 Online" ?
  #include<stdio

Home | Discussion Forum
Taiyari24Hour

How many times the program will print "Study 2 Online" ?

  #include<stdio.h>
int main()
{
printf("Study 2 Online");
main();
return 0;
}



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;
}

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;
}

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.