Sesiones de PyR
About default arguments
5 Votos
4 RespuestasDef Quiz
1 Voto
6 Respuestasdefault arguement ?
0 Votos
2 RespuestasPython: return functions
2 Votos
3 Respuestas#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 RespuestasPython function
1 Voto
2 Respuestaswhat is arguments?
1 Voto
2 Respuestascommand line aregumente
0 Votos
3 Respuestasmap function
1 Voto
4 RespuestasParseInt(readline(),18)
0 Votos
3 RespuestasPython functions
1 Voto
7 RespuestasFunctions
0 Votos
3 RespuestasExplain this code.
0 Votos
4 RespuestasEn tendencia hoy
Started learning python
0 Votes
Websites for frontend developers
1 Votes
Discrete mathematics (python)
0 Votes
Computador
0 Votes
I need help in programing
0 Votes
C++, c# , graphical interface
1 Votes