Dyskusje Q&A
what is "main" really
4 głosów
6 odpowiedziFound it is actually "main"
0 głosów
3 odpowiedziwhat 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
overloading operators << >>
1 Votes
how does this code function?
2 Votes
.
1 Votes
.
0 Votes
My question is about python?
0 Votes
Issue in code
0 Votes
i need to learn Coding
0 Votes
Quiz duel
0 Votes