What is the output of the following code? [code]feval(“sum”,1234,1)[/code]

What is the output of the following code?
Code:
feval(“sum”,1234,1)
A. Syntactical error
B. Logical Error
C. 1235
D. ‘1234’
 
Answer: c
Explanation: There is no error in the following code. The string input to the feval command can also be given within ‘’. Hence, the final output is 1235.
Output: 1235
 

Tìm kiếm

Back
Top