C Programming
    No Argument No Return

When we do not pass any value in calling function and the called function does not return any value to the calling function then it is called No Argument No Return.


Ex.


void sum();   // prototype declaration

                                 void main()
            {
 printf("Hello, It is calling function");
printf("Now, ready to call");
sum();  // we are calling here sum function
printf("Again in main function");
 getch();
             }
                                   void sum() // called function sum or function body

{
printf("In called function");
printf("bye");
}

Note:
  1. void sum(); - It is prototype declaration. Every userdefined function which is going to be called must be declare before the main function. 
  2. void  - It tells the compiler that the called function will not return any value.
  3. sum() - Here the sum has not any data type. It means we will not pass any value to the called function.   
C Programming