4. What will be the output of the following C++ code?
# include<iostream.h>
void main()
{ int x=1;
switch (x)
{
case 0: cout<<"zero";
break;
case 1: cout << "one";
case 2: cout<<"two";
}
}
•NO USELESS ANSWERS PLEASE...
Share
4. What will be the output of the following C++ code?
# include<iostream.h>
void main()
{ int x=1;
switch (x)
{
case 0: cout<<"zero";
break;
case 1: cout << "one";
case 2: cout<<"two";
}
}
•NO USELESS ANSWERS PLEASE...
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Explanation:
Output
g++ /tmp/I67cKVRnS7.cpp
/tmp/I67cKVRnS7.cpp:1:10: fatal error: iostream.h: No such file or directory
1 | # include<iostream.h>
| ^~~~~~~~~~~~
compilation terminated.