12 C Programming Language | Gate 2003 Question in C Programming | Consider the following C function

preview_player
Показать описание
Welcome to Gate CS Coaching.

In this video I have explained:-
1) Gate 2003 Question

Timetable:-
0:01- Gate 2003 Question:-
1) Consider the following C function.
float f(float x, int y)
{
float p, s; int i;
for (s=1, p=1, i=1; i y; i ++)
{
p*= x/i;
s+=p;
}
return s;
}
For large values of y, the return value of the function f best approximates
(A) x^y
(B) e^x
(C) ln(1 + x)
(D) x^x

--------------------------------------------------

Contact Details and Group Details are shown below:-

#CProgrammingLanguage
#Gate2003Question
#Gate2003
#GateQuestion
Рекомендации по теме