Home / General Knowledge / Testing sawaal :: Discussion

Discussion :: Testing sawaal

  1. What is the output of this C code?

       #include <stdio.h>
        int main()
        {
            int a = 1, b = 1;
            switch (a)
            {
            case a*b:
                printf("yes ");
            case a-b:
                printf("non");
                break;
            }
        }

  2. A.
    yes
    B.
    no
    C.
    Compile time error
    D.
    yes no

    View Answer

    Workspace

    Answer : Option C

    Explanation :



Be The First To Comment