Function with no arguments and with return value.

One way data communicate takes place. i.e., the calling program can not pass any arguments to the called program but, the called program may send some return to the calling program.

The called function is independent. It reads values from the keyboard or generates from initialization and returns the values. Here both the calling and called functions are partly communicated with each other.


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

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.