CBSE Class 12 Computer Science
Question 73 of 103
Working with Functions — Question 6
Back to all questionsThe function addEm prints nothing when called.
- The function
addEm(x, y, z)takes three parameters x, y, and z. - It returns the sum of x, y, and z.
- Since the return statement is encountered first, the function exits immediately after returning the sum. The print statement after the return statement is never executed. Therefore, it prints nothing.