Q2. What will be output of the following program segment?
#include <iostream .h>
#include <conio.h>
void main()
int ch= 1 ;
switch (ch)
case 0 : cout << ch;
break;
case 1 : cout << ch;
break;
case 2 : cout << ch;
break;
}
Answers
Answered by
1
Answer:
There will be an Error in your program.
Explanation:
#include <iostream .h>
#include <conio.h>
void main() #Here you have to place " { "
int ch= 1 ;
switch (ch)
case 0 : cout << ch;
break;
case 1 : cout << ch;
break;
case 2 : cout << ch;
break;
}
Similar questions
Political Science,
3 months ago
English,
3 months ago
Chemistry,
3 months ago
Math,
6 months ago
English,
11 months ago
Geography,
11 months ago
Accountancy,
11 months ago