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
Concerning image
1 Votes
How can I learn codes
1 Votes
Code coach "camel and snake"
0 Votes
stop scrolling if navbar is open
2 Votes
Object Oriented Programming
0 Votes
Which is better Rust or C++?
3 Votes
“Beginner in Coding: Which Language Should I Learn First for Unreal Engine Game Development?”
0 Votes
HTML
1 Votes