Home / CSE MCQs / C-MCQs :: C Operators

CSE MCQs :: C-MCQs

  1. Which among the following is NOT a logical or relational operator?
  2. A.
    !=
    B.
    ==
    C.
    ||
    D.
    =

  3. What is the output of this C code?

        int main()
        {
            int a = 10;
            if (a == a--)
                printf("TRUE 1\t");
            a = 10;
            if (a == --a)
                printf("TRUE 2\t");
        }
  4. A.
    TRUE 1
    B.
    TRUE 2
    C.
    TRUE 1  TRUE 2
    D.
    No output

  5. Relational operators cannot be used on:
  6. A.
    structure
    B.
    long
    C.
    strings
    D.
    float