Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtisQ&A DiscussƵes
How to develop a game
-2 Votos
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 RespostasQuente hoje
Is the AI course worth the $49?
0 Votes
Comparing code coach solutions
3 Votes
Where to use
0 Votes
Coding path
0 Votes
How to win bits
1 Votes
Road Runner!!! āš»šš»
1 Votes