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 13 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
Excellent


ashely1112

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

 

Did you know?

A cataract is a clouding of the eyes' natural lens. As we age, some clouding of the lens may occur. The first sign of a cataract is usually blurry vision. Although glasses and other visual aids may at first help a person with cataracts, surgery may become inevitable. Cataract surgery is very successful in restoring vision, and it is the most frequently performed surgery in the United States.

Did you know?

Most women experience menopause in their 50s. However, in 1994, an Italian woman gave birth to a baby boy when she was 61 years old.

Did you know?

Pregnant women usually experience a heightened sense of smell beginning late in the first trimester. Some experts call this the body's way of protecting a pregnant woman from foods that are unsafe for the fetus.

Did you know?

Always store hazardous household chemicals in their original containers out of reach of children. These include bleach, paint, strippers and products containing turpentine, garden chemicals, oven cleaners, fondue fuels, nail polish, and nail polish remover.

Did you know?

Hypertension is a silent killer because it is deadly and has no significant early symptoms. The danger from hypertension is the extra load on the heart, which can lead to hypertensive heart disease and kidney damage. This occurs without any major symptoms until the high blood pressure becomes extreme. Regular blood pressure checks are an important method of catching hypertension before it can kill you.

For a complete list of videos, visit our video library