Dyskusje Q&A
About default arguments
5 głosów
4 odpowiedziDef Quiz
1 Głos
6 odpowiedzidefault arguement ?
0 głosów
2 odpowiedziPython: return functions
2 głosów
3 odpowiedzi#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 Głos
6 odpowiedziPython function
1 Głos
2 odpowiedziwhat is arguments?
1 Głos
2 odpowiedzicommand line aregumente
0 głosów
3 odpowiedzimap function
1 Głos
4 odpowiedziParseInt(readline(),18)
0 głosów
3 odpowiedziPython functions
1 Głos
7 odpowiedziFunctions
0 głosów
3 odpowiedziExplain this code.
0 głosów
4 odpowiedziPopularne dzisiaj
Kernel in Jupyter
2 Votes
SQL
2 Votes
JAVA PROGRAMMING
1 Votes
What Does Pseudo Elements Mean.
2 Votes
IMAGE
0 Votes