Q&A Discussões
Def Quiz
1 Voto
6 Respostasdefault arguement ?
0 Voto
2 RespostasPython: return functions
2 Votos
3 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 RespostasPython function
1 Voto
2 Respostaswhat is arguments?
1 Voto
2 Respostasmap function
1 Voto
4 RespostasPython functions
1 Voto
7 RespostasFunctions
0 Voto
3 RespostasExplain this code.
0 Voto
4 RespostasQuente hoje
Pig Latin
0 Votes
Someone can help me
0 Votes
Please rate my code from 1 to 10
2 Votes
Square Roots
0 Votes
What's wrong with this?
2 Votes
I’m new someone can help me
0 Votes