F&A Diskussionen
What is the point of void?
0 Stimmen
2 AntwortenSome questions about c#
0 Stimmen
1 Antwort#include <iostream>
using namespace std;
int calc(int &a,int &b,int c=6)
{
a+=b;
b-=c;
c=a+b;
}
int main()
{
int calc(int,int,int);
int x=2,y=3,z=4; cout<<x<<endl<<y<<endl<<z<<endl;
calc(x,y,z); cout<<x<<endl<<y<<endl<<z<<endl;
calc(5,6,z); cout<<x<<endl<<y<<endl<<z<<endl;
return 0;
}
1 Stimme
5 AntwortenDrop down html
2 Stimmen
10 AntwortenHow do i do that
0 Stimmen
6 AntwortenI am unable to understand return.
0 Stimmen
4 Antwortenwhy this function returns n ?
0 Stimmen
2 Antwortendef add(x, y):
return x + y
def do_twice(func, x, y):
return func(func(x, y), func(x, y))
a = 5
b = 10
print(do_twice(add, a, b))
Please explain step by step
Which is caller here?
Explain the 3rd and 4th line ?
why in 4th line we write add(add(x,y),add(x,y)) which is function of 1st line ?
how can we write function after return statement insted of (x+y+x+y )=30?
0 Stimmen
2 AntwortenHow do I reference an old line?
0 Stimmen
2 AntwortenVoid and Main
0 Stimmen
4 AntwortenHeute heiß
SQL
3 Votes
JAVA PROGRAMMING
2 Votes
HTML/CSS questions
0 Votes
What Does Pseudo Elements Mean.
2 Votes
IMAGE
0 Votes
Html
1 Votes
Find courses
0 Votes