F&A Diskussionen
Javascript Problem with function
2 Stimmen
4 AntwortenAnyone help me with this....?
0 Stimmen
5 AntwortenOperator % what is it
0 Stimmen
4 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 AntwortenStop code execution?
2 Stimmen
1 AntwortWhat's wrong?! Please! Help me!!
2 Stimmen
13 AntwortenThe above qns ans
0 Stimmen
1 AntwortHow do I make my var "w" work?
0 Stimmen
3 AntwortenWhy this code isn't working?
1 Stimme
4 AntwortenCapital indexes
0 Stimmen
2 AntwortenWhat is meant by $x=$y ?
0 Stimmen
1 AntwortHeute heiß
C pointers
1 Votes
Python
0 Votes
Guys help please
0 Votes
Slicing in python
1 Votes
Python question
1 Votes
Control flow
0 Votes
HTML
0 Votes
Front-end vs Full-stack
1 Votes