wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider following C function
int fun(int n){static int x =1;x = x - n;(x < 10) return (fun(fun(n - 1)));else return x;}

What is return value of fun(7)?

A
28
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
14
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
None of these
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
8
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Join BYJU'S Learning Program
CrossIcon