C++ Function Parameter Passing Values to Functions

Description

C++ Function Parameter Passing Values to Functions

#include <iostream> 
  
using namespace std; 
  
void PrintSum(int valueA, int valueB) 
{ 
        cout << valueA + valueB << endl; 
} 
  
int main(int argc, char *argv [])
{ 
        PrintSum(3, 6); /* w  w w.  j a v  a 2s. c  om*/
  
        return 0; 
}



PreviousNext

Related