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 14 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


Animal_Goddess

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

 

Did you know?

Drugs are in development that may cure asthma and hay fever once and for all. They target leukotrienes, which are known to cause tightening of the air passages in the lungs and increase mucus productions in nasal passages.

Did you know?

Fewer than 10% of babies are born on their exact due dates, 50% are born within 1 week of the due date, and 90% are born within 2 weeks of the date.

Did you know?

Cytomegalovirus affects nearly the same amount of newborns every year as Down syndrome.

Did you know?

The liver is the only organ that has the ability to regenerate itself after certain types of damage. As much as 25% of the liver can be removed, and it will still regenerate back to its original shape and size. However, the liver cannot regenerate after severe damage caused by alcohol.

Did you know?

As of mid-2016, 18.2 million people were receiving advanced retroviral therapy (ART) worldwide. This represents between 43–50% of the 34–39.8 million people living with HIV.

For a complete list of videos, visit our video library