HOME Forums Forum Return Function

This topic contains 0 replies, has 1 voice, and was last updated by  RaksmeyChea 2 years ago.

Viewing 1 post (of 1 total)
  • Author
  • #908 Reply


    Here is example of return function.

    int sum(int x,int y);
    void main()
       int v1,v2,result;
       cout<<"Enter V1: ";	cin>>v1;
       cout<<"Enter V2: ";	cin>>v2;
       cout<<"Result  : "<<sum(v1,v2);
    int sum(int x,int y)
     	int s=x+y;
       return s;
Viewing 1 post (of 1 total)
Reply To: Return Function
Your information: