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 11 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
Great answer, keep it coming :)


shailee

  • Member
  • Posts: 392
Reply 3 on: Yesterday
Gracias!

 

Did you know?

Thyroid conditions cause a higher risk of fibromyalgia and chronic fatigue syndrome.

Did you know?

Opium has influenced much of the world's most popular literature. The following authors were all opium users, of varying degrees: Lewis Carroll, Charles, Dickens, Arthur Conan Doyle, and Oscar Wilde.

Did you know?

Pink eye is a term that refers to conjunctivitis, which is inflammation of the thin, clear membrane (conjunctiva) over the white part of the eye (sclera). It may be triggered by a virus, bacteria, or foreign body in the eye. Antibiotic eye drops alleviate bacterial conjunctivitis, and antihistamine allergy pills or eye drops help control allergic conjunctivitis symptoms.

Did you know?

Glaucoma is a leading cause of blindness. As of yet, there is no cure. Everyone is at risk, and there may be no warning signs. It is six to eight times more common in African Americans than in whites. The best and most effective way to detect glaucoma is to receive a dilated eye examination.

Did you know?

In the ancient and medieval periods, dysentery killed about ? of all babies before they reach 12 months of age. The disease was transferred through contaminated drinking water, because there was no way to adequately dispose of sewage, which contaminated the water.

For a complete list of videos, visit our video library