Identify and correct the erros in the following program.
void nPrintln(string message, int n){int n=1;for (int i=0; iint main (){nPrintln(5, "Welcome to C++!");}
Identify the side effect in the following function. int ExamPrep (int param1, int& param2) {
If (param2 = param1) return param2;
else if (param2 > param1) return param1;
else return param1 * param2;
}
What's wrong with the following function? bool Greater (int param1, int param2) {
If (param1 > param2) return true;
}