In C language, i++ means

This question was previously asked in
ESE Mechanical 2014 Official Paper - 2
View all UPSC IES Papers >
  1. i = i + 1
  2. i = i - 1
  3. i = i + 2
  4. i = i - 2

Answer (Detailed Solution Below)

Option 1 : i = i + 1
Free
ST 1: UPSC ESE (IES) Civil - Building Materials
6.4 K Users
20 Questions 40 Marks 24 Mins

Detailed Solution

Download Solution PDF

Concept:

In C, ++ and -- operators are called increment and decrement operators.

They are unary operators needing only one operand. Hence ++ as well as -- operator can appear before or after the operand with same effect. 

That means both i++ and ++i will be equivalent.

i++ means i = i + 1

⇒ if i = 5 is given, then i will become 6

Latest UPSC IES Updates

Last updated on Jul 2, 2025

-> ESE Mains 2025 exam date has been released. As per the schedule, UPSC IES Mains exam 2025 will be conducted on August 10. 

-> UPSC ESE result 2025 has been released. Candidates can download the ESE prelims result PDF from here.

->  UPSC ESE admit card 2025 for the prelims exam has been released. 

-> The UPSC IES Prelims 2025 will be held on 8th June 2025.

-> The selection process includes a Prelims and a Mains Examination, followed by a Personality Test/Interview.

-> Candidates should attempt the UPSC IES mock tests to increase their efficiency. The UPSC IES previous year papers can be downloaded here.

Get Free Access Now
Hot Links: teen patti wink teen patti comfun card online teen patti master gold apk teen patti royal