Share
Give the output of the following function | Amazon Interview Question
Question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
b <- 4
f <- function(a)
{
b <- 3
b^3 + g(a)
}
g <- function(a)
{
a*b
}
Answer ( 1 )
27 + 3a
answere will depend on value of a passed as parameter through f
f(3) = 36