Q&A Discussões
About default arguments
5 Votos
4 RespostasDef 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
Functions in python
2 Votes
How to make a playground
1 Votes
I need advice
1 Votes
Html 5 document question
1 Votes
Python
0 Votes
𝙵𝙸𝙽𝙳 𝚃𝙷𝙴 𝙸𝙽𝙿𝚄𝚃 𝙾𝙵 𝚃𝙷𝙴 𝙿𝚁𝙾𝙶𝚁𝙰𝙼
1 Votes