Passing Values to Functions Through Parameters - C++ Function

C++ examples for Function:Function Parameter

Description

Passing Values to Functions Through Parameters

Demo Code

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

Result


Related Tutorials