Multiple choice

Consider the following C function. float f,(float x, int y) { float p, s; int i; for (s=1,p=1,i=1; i

  1. Xy

  2. ex

  3. In (1+x)

  4. Xx

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The function f() is implementation of Taylor’s Series to calculates ex ex = 1 + x + x2/2! + x3/3! + --- More is the value of y more precise value of ex will be returned by f()