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
What’s wrong with this???
3 Votes
What's wrong with these codes?
1 Votes
What can i do with bits
3 Votes
Arrays
0 Votes
Guys, it’s about streak
0 Votes
Is it A Bug or A Feature?
0 Votes
html
2 Votes
I don't get it
0 Votes