functions with no arguments but returns a value

ØThe called function will receive no data from the calling function.
ØThe calling function will receive data from the called function.

ØCommunication between calling function and called function with no arguments but returns a value.

 

//coding

 

int get_number(void);

main()

{

int m= get_number();

printf("%d",m);

}

 

int get_number(void)

{

int number

scanf("%d",&number);

return(number);

}

 

 

categories of functions by mrs.sp.nandhini