Function with no arguments and no return value.

In this function, no data transfer takes place between the calling function and the called function. i.e., the called program does not receive any data from the calling program and does not send back any value to the calling program.

The function is only executed and nothing is obtained. Such functions are used to perform only operation, they act independently. They read data values and print result in the same block


void add();
void main()
void add()
int a=5,b=5,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.