What will be the output of the program?
#include<stdio.h>
i

Home | Discussion Forum
Taiyari24Hour

What will be the output of the program?

#include<stdio.h>
int i;
int fun();
int main()
{
while(i)
{
fun();
main();
}
printf("Hello\n");
return 0;
}
int fun()
{
printf("Hi");
}



View More Related Question

2) Point out the error in the program

   f(int a, int b)
{
int a;
a = 20;
return a;
}

3) The keyword used to transfer control from a function back to the calling function is

4) What will be the output of the program?

#include<stdio.h>
int main()
{
int fun(int);
int i = fun(10);
printf("%d\n", --i);
return 0;
}
int fun(int i)
{
return (i++);
}

5) What will be the output of the program?

#include<stdio.h>
int check(int);
int main()
{
int i=45, c;
c = check(i);
printf("%d\n", c);
return 0;
}
int check(int ch)
{
if(ch >= 45)
return 100;
else
return 10;
}

UP Gk Online Test

taiyari24hour.com

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