Computer Science, asked by rkoreo345, 6 months ago

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 Anonymous
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