Q&A Discussões
Operator % what is it
0 Voto
4 Respostas#include <iostream>
using namespace std;
int sum(int a, int b=42) {
int result = a + b;
return (result);
}
int main() {
int x = 24;
int y = 36;
//calling the function with both parameters
int result = sum(x, y);
cout << result << endl;
//calling the function without b
result = sum(x);
cout << result << endl;
return 0;
}
why is da last function cout 66 and not 48 isn't it suppose to add 24+24?
1 Voto
6 RespostasStop code execution?
2 Votos
1 RespostaThe above qns ans
0 Voto
1 RespostaCapital indexes
0 Voto
2 RespostasQuente hoje
New code
1 Votes
How would you solve the part of the C# Intermediate code project that requires operator overloading?
0 Votes
Kernel in Jupyter
1 Votes