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.

Example :

123456789101112131415161718192021

222324252627282930313233

3435363738394041424344454647484950515253

54555657585960616263646

5666768697071727374757677787980818

2838485868788899091929394959697

9899100101102103104105106107108109110111112

#include <stdio.h>  #include <conio.h>  void function1();  void function2();  int function3();  int function4();  int main() 

Home

Comments are Disabled