Q&A Discussions
About "return" statement
2 Votes
3 AnswersHow is this 24
0 Votes
2 Answerswhat will be output??
#include <iostream>
using namespace std;
int main(int a)
{
cout << a << "\n";
return 0;
}
int main(char *a)
{
cout << a << endl;
return 0;
}
int main(int a, int b)
{
cout << a << " " << b;
return 0;
}
int main()
{
main(3);
main("Subodh");
main(9, 6);
return 0;
}
if output is compilation compilation error then how can we overload "main" function in C++
0 Votes
5 AnswersHot today
X velocity
3 Votes
And... Who is the staff then?
4 Votes
Files not linking in C++
0 Votes
Web Dev
1 Votes
Why Pro?
1 Votes
Which is the error in this code
0 Votes
Python IDE
0 Votes
Problem with Javascript
0 Votes
Machine learning model debugging
1 Votes