New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
Why is only B) Correct?
1 Vote
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
Media on HTML
0 Votes
Code Playground
0 Votes
xampp
0 Votes
Is Sololearn better or Mimo.org?
1 Votes
Editor HTML
0 Votes
How to solve this
1 Votes
Java project
0 Votes