Dyskusje Q&A
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 głosów
5 odpowiedziPopularne dzisiaj
Checking personal activity
0 Votes
Help
0 Votes
Where is the error
0 Votes
Use of global function in c
0 Votes
Which one is better?? And why??
1 Votes
Python
0 Votes
Full form of HTML
0 Votes
Tryna learn dunno where to start
0 Votes