Home / General Knowledge / Testing sawaal :: Discussion

Discussion :: Testing sawaal

  1. What is the output of this C code?

            #include <stdio.h>
            void main()
            {
                int y = 3;
                int x = 5 % 2 * 3 / 2;
                printf("Value of x is %d", x);
            }

  2. A.
    Value of x is 1
    B.
    Value of x is 2
    C.
    Value of x is 3
    D.
    Compile time error

    View Answer

    Workspace

    Answer : Option A

    Explanation :



Be The First To Comment