Operator in C MCQs Exercise II

Ques 1 Operator


sizeof is a type of operator _______

A Binary Operator
B Relational Operator
C Unary Operator
D None of these

Ques 2 Operator


What is the output of the following code ?

int main() {     int x=21;
    printf("%d",sizeof(x));
    return 0;
}

A 2
B 21
C 42
D 84

Ques 3 Operator


Which of the following is correct syntax of Unary operator?

A expression?//statement://statement;
B condition?expression?//statement;
C c) both(a) and (b)
D None of these