Which of the following is NOT possible with any 2 operators in C?
a) Concatenation
b) Comparison
c) Addition
d) Assignment
Answer:
a) Concatenation
Explanation:
In C, concatenation of two values is not possible using any of the standard operators. Concatenation, typically associated with strings, is done using functions like strcat()
in C, not operators. Other operations like comparison, addition, and assignment are performed using respective operators (==
, +
, =
).
Understanding the capabilities and limitations of C operators is important for performing the correct operations on data in your programs.