?
What does the ++ operator do in C when applied to a variable?
Answer & Solution
Correct Answer:
Option
B
When the ++ operator is applied to a variable in C, it increments the value of the variable by 1.
Option A (Decrements by 1) is incorrect as the ++ operator increases the value.
Option C (Doubles the value) is incorrect as the ++ operator adds 1, not doubles the value.
Option D (Leaves it unchanged) is incorrect as the ++ operator explicitly increments the variable's value by 1.
Option A (Decrements by 1) is incorrect as the ++ operator increases the value.
Option C (Doubles the value) is incorrect as the ++ operator adds 1, not doubles the value.
Option D (Leaves it unchanged) is incorrect as the ++ operator explicitly increments the variable's value by 1.
Join the Discussion
Login to post a comment or share your explanation.
Login