Обсуждения
Why is only B) Correct?
1 голос
2 ответов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 голосов
5 ответовАктуальное сегодня
Learning Specific Code
1 Votes
What is <div>
0 Votes
Imagens
0 Votes
Help
0 Votes
I need help
0 Votes
Hyper link
0 Votes
SQL
0 Votes