ExamVeda
Login
Home
Operators and Expressions
?

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.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.