This topic contains a solution. Click here to go to the answer

Author Question: What is the value of i after the following statements? i = 2; i++; a) 0 b) 2 c) 3 d) ... (Read 28 times)

karlynnae

  • Hero Member
  • *****
  • Posts: 599
What is the value of i after the following statements? i = 2; i++;
 
  a) 0
  b) 2
  c) 3
  d) 4

Question 2

What is the value of i after the following statements? i = 2; i--; i--;
 
  a) 0
  b) 1
  c) -2
  d) -4



Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by a Subject Expert

cclemon1

  • Sr. Member
  • ****
  • Posts: 312
Answer to Question 1

Ans: (c)

Answer to Question 2

Ans: (a)




karlynnae

  • Member
  • Posts: 599
Reply 2 on: Jul 7, 2018
:D TYSM


laurnthompson

  • Member
  • Posts: 334
Reply 3 on: Yesterday
YES! Correct, THANKS for helping me on my review

 

Did you know?

In 1835 it was discovered that a disease of silkworms known as muscardine could be transferred from one silkworm to another, and was caused by a fungus.

Did you know?

Never take aspirin without food because it is likely to irritate your stomach. Never give aspirin to children under age 12. Overdoses of aspirin have the potential to cause deafness.

Did you know?

Not getting enough sleep can greatly weaken the immune system. Lack of sleep makes you more likely to catch a cold, or more difficult to fight off an infection.

Did you know?

If you could remove all of your skin, it would weigh up to 5 pounds.

Did you know?

The strongest synthetic topical retinoid drug available, tazarotene, is used to treat sun-damaged skin, acne, and psoriasis.

For a complete list of videos, visit our video library