closed by
189 views
0 votes
0 votes
closed as a duplicate of: GATE CSE 1998 | Question: 2.12

What value would the following function return for the input x = 95 ? 

function fun (x:integer): integer; Begin

If x > 100 then fun = x - 10

Else fun = fun(fun(x + 11))

End;

(A)89 (C) 91 (B) 90 (D)92

closed by

Related questions

1 votes
1 votes
2 answers
2
Ayush_Pal asked Apr 26
192 views
#include<stdio.h>#define ADD(a,b)(a+b)#define SQUARE(x)(x*x)int main(){int x=2;int y=3;int z = ADD(SQUARE(x++),y);printf("%d\n",z);return 0;}What is the output of the abo...
0 votes
0 votes
1 answer
3
prerona_99 asked Aug 12, 2022
330 views
0 votes
0 votes
0 answers
4
amitqy asked Nov 23, 2018
398 views