Discussioni Q&A
Compiled Python
8 Voti
1 RispostaError connection
0 Voti
1 RispostaVirtual functions
1 Voto
2 Rispostewhat 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 Voti
5 RisposteC program
0 Voti
2 Rispostegetting error when try to use this code
System.out.printf("my name is %s","Roy");
it's showing like: exception in thread"main" Java.lang.Error: unresolved compilation problem:
the method printf(String,Object[ ]) in the type printstream is not applicable for the arguments (String,int)at tutorial 19.App.main(App.java:11)
0 Voti
3 RispostePopolare oggi
Coding for Cybersecurity
0 Votes
Pointers in c#
0 Votes
Need help
0 Votes
Salut tout le monde
1 Votes