#include <iostream>
using namespace std;
int sum(int a, int b){
return a + b;
}
int main() {
int a , b;
int sum = sum(5,6);
cout << sum;
}
There's an error. Can't the variable name in the main function be the same as the function's name?
c
c++
function
2022-09-20 19:49