Question discussion

Pick the correct statements.I.   The body of a function should have only one return statement.II.  The body of a function may have many ret…

289403Medium 1 reply 4,564 views
40
Pick the correct statements.I.   The body of a function should have only one return statement.II.  The body of a function may have many return statements.III. A function can return only one value to the calling environment.IV. If return statement is omitted, then the function does its job but returns no value to the calling environment.
  • AI and II
  • BI and III
  • CII and III
  • DII and IV
  • EIII and IV
Correct answer: C

Discussion 1

0
CCommunity
II and III