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 12 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 :)


cassie_ragen

  • Member
  • Posts: 347
Reply 3 on: Yesterday
Thanks for the timely response, appreciate it

 

Did you know?

Symptoms of kidney problems include a loss of appetite, back pain (which may be sudden and intense), chills, abdominal pain, fluid retention, nausea, the urge to urinate, vomiting, and fever.

Did you know?

Women are two-thirds more likely than men to develop irritable bowel syndrome. This may be attributable to hormonal changes related to their menstrual cycles.

Did you know?

In ancient Rome, many of the richer people in the population had lead-induced gout. The reason for this is unclear. Lead poisoning has also been linked to madness.

Did you know?

The top five reasons that children stay home from school are as follows: colds, stomach flu (gastroenteritis), ear infection (otitis media), pink eye (conjunctivitis), and sore throat.

Did you know?

HIV testing reach is still limited. An estimated 40% of people with HIV (more than 14 million) remain undiagnosed and do not know their infection status.

For a complete list of videos, visit our video library