C – Return Statement

C – Return Statement 2017-08-05T14:48:08+00:00

Return Statement :

  • A function may or may not return a value. A return statement returns a value to the calling function and assigns to the variable in the left side of the calling function.
  • If a function does not return a value, the return type in the function definition and declaration is specified as void.

C – RETURN STATEMENT EXAMPLE PROGRAM :

Output :

First

Second

Third – 1

Returned value = 10

Fourth

Returned value = 20

Prev Next