Q1: What will be the output of the following program? Also explain step by step how it works? CLO-2 #include using namespace std; int main() { int i=2; switch(i) { case 1: cout



Q1: What will be the output of the following program? Also explain step by step how it works? CLO-2


#include
using namespace std;
int main()
{ int i=2;

switch(i)
{ case 1:

cout<"case1><>

case 2: cout<"case2><>

case 3: cout<"case3><>

case 4: cout<"case4><>

default: cout<"default><>

}

return 0;
}



Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here