Sail E0 Webinar
Question


What is the output of this program?


1.
#include
2.
using namespace std;
3.
int main()
4.
{
5.
int a = 10;
6.
if (a < 15)
7.
{
8.
time:
9.
cout
Options:
A .  1010
B .  10
C .  infinitely print 10
D .  compile time error
Answer: Option D

Because the break statement need to be presented inside a loop or a switch statement.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers