Find output of the program
#include<stdio.h>
int foo(int a, int b)
{
while(b<a+a)
{
b=b*b;
b=b+2;
break;
return b;
}
int hello(int a, int b)
{
return foo(a+1, a-1);
}
int main()
{
int x=2,y=3;
int z=hello(y,x);
printf("%d",z);
return 0;
}
Answers
Answered by
0
Answer:
11
it a correct answer.. I will Run In my C compilers..
Answered by
0
output of the program hello(3,2).
Explanation:
#include<stdio.h>
int foo(int a, int b)
{
while(b<a+a)
{
b=b*b;
b=b+2;
break;
return b;
}
int hello(int a, int b)
{
return foo(a+1, a-1);
}
int main()
{
int x=2,y=3;
int z=hello(y,x);
printf("%d",z);
return 0;
}}
output of the program hello(3,2)
Similar questions