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
How can one build an Ai app
4 Votes
Websites for frontend developers
2 Votes
AI Takeover
2 Votes
How to learn python
1 Votes
C course progress restart
2 Votes
Error in the result
0 Votes
Average of Two Numbers
0 Votes