Function with arguments and no return value.

The Data is transferred from calling function to called function i.e., The called program receives some data from the calling program and does not send back any values to calling program. Simply we can say one way communication.


void add();
void main()
int a=5,b=5;
void add(int x, int y)
int c;
printf("sum is %d",c);

Run Example >

< Previous Next >

Privacy Policy Terms of Service About
Creative Commons License
This work is licensed under a Creative Commons Attribution-NoDerivatives 4.0 International License.