Which of the following is not an operator in C?
a) sizeof
b) typeof
c) ~
d) %
Answer:
b) typeof
Explanation:
typeof is not an operator in standard C. It is an extension provided by some compilers like GCC, used to determine the type of a variable or expression. The standard operators in C include sizeof, which determines the size of a data type, ~ (bitwise NOT), and % (modulus). These operators are part of the standard C language.
Understanding the standard operators in C and their functionality is crucial for performing various operations and ensuring the code’s portability across different compilers.