Give the output of the following function | Amazon Interview Question

Question

b <- 4
f <- function(a)
{
b <- 3
b^3 + g(a)
}
g <- function(a)
{
a*b
}

in progress 0
Ritika Sohal 4 years 1 Answer 732 views Member 0

Answer ( 1 )

  1. 27 + 3a

    answere will depend on value of a passed as parameter through f

    f(3) = 36

Leave an answer

Browse
Browse