C++ examples for Function:Function Parameter
Passing Values to Functions Through Parameters
#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; }