F&A Diskussionen
About default arguments
5 Stimmen
4 AntwortenHow do i create a function in C?
0 Stimmen
6 AntwortenDef Quiz
1 Stimme
6 AntwortenWhat is the difference between?
0 Stimmen
6 Antwortendefault arguement ?
0 Stimmen
2 AntwortenPassing array of pointers
1 Stimme
10 AntwortenPython: return functions
2 Stimmen
3 Antworten#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 Stimme
6 AntwortenIntro to Functional Programming
0 Stimmen
6 AntwortenPython function
1 Stimme
2 Antwortenwhat is arguments?
1 Stimme
2 AntwortenЗначения по умолчанию для параметров
-2 Stimmen
8 Antwortencommand line aregumente
0 Stimmen
3 AntwortenWhere did I go wrong?
1 Stimme
16 AntwortenWhere does the return value go?
0 Stimmen
4 Antwortenmap function
1 Stimme
4 AntwortenParseInt(readline(),18)
0 Stimmen
3 AntwortenPython functions
1 Stimme
7 AntwortenFunctions
0 Stimmen
3 AntwortenExplain this code.
0 Stimmen
4 AntwortenHeute heiß
New code
1 Votes
How would you solve the part of the C# Intermediate code project that requires operator overloading?
0 Votes
Kernel in Jupyter
2 Votes