Dyskusje Q&A
#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 Głos
5 odpowiedziPopularne dzisiaj
which programming language
1 Votes
What to learn?
1 Votes
Operator bool overloaded
1 Votes
Help me
2 Votes
Cybersecurity
1 Votes
I AM CREATING A ROBLOX GAME
0 Votes