Обсуждения
About default arguments
5 голосов
4 ответовHow do i create a function in C?
0 голосов
6 ответовWhat is the difference between?
0 голосов
6 ответовdefault arguement ?
0 голосов
2 ответовPassing array of pointers
1 голос
10 ответовPython: return functions
2 голосов
3 ответов#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 голос
6 ответовIntro to Functional Programming
0 голосов
6 ответовPython function
1 голос
2 ответовwhat is arguments?
1 голос
2 ответовЗначения по умолчанию для параметров
-2 голосов
8 ответовcommand line aregumente
0 голосов
3 ответовWhere did I go wrong?
1 голос
16 ответовWhere does the return value go?
0 голосов
4 ответовmap function
1 голос
4 ответовParseInt(readline(),18)
0 голосов
3 ответовPython functions
1 голос
7 ответовExplain this code.
0 голосов
4 ответовАктуальное сегодня
C pointers
2 Votes
Python
1 Votes
Guys help please
0 Votes
Python question
2 Votes
Control flow
0 Votes
HTML
0 Votes
Front-end vs Full-stack
1 Votes
About our Capstone product "Ecocambio" We don't know how to code and how electronics would connect.
0 Votes
Are websites hackable?
1 Votes