Q&A Discussions
When do you hit "compile"?
9 Votes
6 AnswersJava vs C++ compile speeds
17 Votes
11 AnswersCompiled Python
8 Votes
1 AnswerWhat is linking in C++.....?
2 Votes
1 AnswerError connection
0 Votes
1 AnswerVirtual functions
1 Vote
2 Answerswhat 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 Answersgetting 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 Votes
3 Answers