Q&A Discussions
Why do we use return 0;
-1 Vote
3 AnswersWhen do we use return 1
0 Votes
4 AnswersWhat does return do
1 Vote
1 Answer#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 Answerswhy we use return
0 Votes
1 AnswerWhat does return means?
4 Votes
7 AnswersHot today
Quiz
0 Votes
C++ Vectors
0 Votes
Code challenge
0 Votes
A Little Question Here!
1 Votes
can't understand an error
0 Votes
Loop
0 Votes