Q&A Discussions
Please explain.
0 Votes
2 AnswersWorking on Files
0 Votes
2 AnswersWhy this code has no output?
0 Votes
1 AnswerIn the continue Loop -
i = 0
while True:
i = i +1
if i == 2:
print("Skipping 2")
continue
if i == 5:
print("Breaking")
break
print(i)
print("Finished")
It shows the output being
"1
Skipping 2
3
4
Breaking
Finished"
Why are the last three lines not
"Breaking
5
Finished"
Where it shows print(i) after break?
1 Vote
3 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 Answersneed help plz
0 Votes
2 AnswersHot today
Saturn League badge
2 Votes
Sololearn keeps crashing
1 Votes
Lua course?
2 Votes
certificate
1 Votes
CSS
1 Votes
Adding an image to my html
0 Votes
Not able to activate account
0 Votes
About Advanced Courses
0 Votes