Q&A Discussions
what 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
I am new in python
4 Votes
Can we collab?
3 Votes
Calculator
0 Votes
I'm new in js
0 Votes
Python
0 Votes
Audio trouble
0 Votes
dictionary
0 Votes
Ethical Hacker
0 Votes
AI courses
1 Votes