Sail E0 Webinar
Question
Comment on the output of this C code?

   switch (ch)

    {

    case 'a':

    case 'A':

        printf("true");

    }

Options:
A .  if (ch == 'a' && ch == 'A') printf(true");
B .  if (ch == 'a')     if (ch == 'a') printf(true");
C .  if (ch == 'a' || ch == 'A') printf(true");
D .  Both a and b
Answer: Option D


none



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :


Latest Videos

Latest Test Papers