logo

Crowdly

What is the output of the below program? int main() {    int i = 0;    f...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What is the output of the below program?

int main()

{

   int i = 0;

   for (i=0; i<20; i++)

   {

     switch(i)

     {

       case 0:

         i += 5;

       case 1:

         i += 2;

       case 5:

         i += 5;

       default:

         i += 4;

         break;

     }

     printf("%d  ", i);

   }

   return 0;

}

0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.lnmiit.ac.in?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!