Q&A Discussions
what is "main" really
4 Votes
6 AnswersFound it is actually "main"
0 Votes
3 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
Need a personal tutor
1 Votes
Fix code
0 Votes
..
1 Votes
Software to write and run codes
0 Votes
Add lua
0 Votes
Summary please??
0 Votes