F&A Diskussionen
How 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ß
JavaScript intermediate quiz
1 Votes
Helppp..
2 Votes
[Solved] Doubt
3 Votes
Why when i make this code in my screen a message appears saying you need to enter more input?
1 Votes
Why this program not working
0 Votes
Nodejs
0 Votes
About code
0 Votes