Обсуждения
Javascript Problem with function
2 голосов
4 ответовAnyone help me with this....?
0 голосов
5 ответовOperator % what is it
0 голосов
4 ответов#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 ответовStop code execution?
2 голосов
1 ответWhat's wrong?! Please! Help me!!
2 голосов
13 ответовThe above qns ans
0 голосов
1 ответHow do I make my var "w" work?
0 голосов
3 ответовCapital indexes
0 голосов
2 ответовWhat is meant by $x=$y ?
0 голосов
1 ответАктуальное сегодня
Time up code for data revision
0 Votes
Best Python Calculator Code
1 Votes
I want to learn why this error occurs in "while loop" function of Pythone.Can someone explain to me?
1 Votes
Animation
2 Votes
New code
1 Votes
Clean Code
2 Votes
While or for loop
0 Votes