Electronics and Communication Engineering - Microprocessors - Discussion

Discussion Forum : Microprocessors - Section 1 (Q.No. 6)
6.
Expression ++i is equivalent to
i = i + 2
i = i + 1
i = i - 1
i = i + i + i
Answer: Option
Explanation:

i is incremented by 1.

Discussion:
8 comments Page 1 of 1.

Shahina said:   6 years ago
++i means pre-increment. That means 1st you increase the no then assign to i.
i++ means post-increment. That means 1st you have to assign the value thereby increment by 1.
(3)

Tejaswi said:   8 years ago
I think it's i+1.
(1)

Bharathi said:   1 decade ago
Can you please explain these bit in detail manner.

Priya said:   10 years ago
How many interrupt request lines are available in programmable interrupt controller 8259A?

Vinay said:   9 years ago
I think it's i++.

Tejaswini Mane said:   8 years ago
Please explain in detail.

Nandan said:   6 years ago
++i means Pre increment, That means, you have increase number by 1.

i++ means post-increment, That means, you have increase number by 1.

Leela durga said:   6 years ago
What is the difference between pre and post increments?

Both are increased by 1, right?

Post your comments here:

Your comments will be displayed after verification.