The value obtained in the function is given back to main by using __________…

2026

The value obtained in the function is given back to main by using __________ keyword.

  1. A.

    Static

  2. B.

    Return

  3. C.

    New

  4. D.

    Volatile

Attempted by 370 students.

Show answer & explanation

Correct answer: B

In programming, the return keyword is used to send a value back from a function to the calling code (like main). It terminates the function execution and passes control along with any specified value.

Explore the full course: Up Lt Grade Assistant Teacher 2025