void f (int x, int y) {
while (x < y) {
printf("%d ", y - x);
x = x + 1;
y = y - 1;
}
}
what is the output for (-1,4)?
Answers
Answered by
0
Answer:
happy Raksha Bandhan
good morning
have a nice day
Answered by
1
Consider the following recursive function fun(x, y). What is the value of fun(4, 3)
if (x == 0)
int fun(int x, int y)
return fun(x - 1, x + y);
{
return y;
intfun(intx, inty) { if(x == 0) returny; returnfun(x - 1, x + y); }
Similar questions
Social Sciences,
4 months ago
Math,
4 months ago
Math,
4 months ago
Math,
9 months ago
English,
9 months ago
Math,
1 year ago
Biology,
1 year ago
Environmental Sciences,
1 year ago