Discussions Q&R
C++
0 Vote
7 Réponses#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 Vote
5 RéponsesAujourd'hui en vedette
time complexity
1 Votes
For loop
1 Votes
Any Other Solution?
1 Votes
Markdown Support on SoloLearn?
0 Votes
Game dev advice
0 Votes
IQ Insight project
1 Votes
Help game dev projects
0 Votes