Discussions Q&R
About default arguments
5 Votes
4 RéponsesDef Quiz
1 Vote
6 Réponsesdefault arguement ?
0 Vote
2 RéponsesPython: return functions
2 Votes
3 Réponses#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 Vote
6 RéponsesPython function
1 Vote
2 Réponseswhat is arguments?
1 Vote
2 RéponsesWhere did I go wrong?
1 Vote
16 Réponsesmap function
1 Vote
4 RéponsesPython functions
1 Vote
7 RéponsesFunctions
0 Vote
3 RéponsesExplain this code.
0 Vote
4 RéponsesAujourd'hui en vedette
What is a web browser intension?
1 Votes
python
0 Votes
Thread local : global vs local
0 Votes
Postgrrsql and python
0 Votes
Codding lern
0 Votes
Data Analysis Course
1 Votes
Is there LUA?
0 Votes
Web vs python
0 Votes