#c7 /* prefix operators */ #include int main() { - TopicsExpress



          

#c7 /* prefix operators */ #include int main() { int a = 7, b = 12, c; c = b * (++a) + 5 * (++a); printf(“ a = %d”, a); printf(“ b = %d”,b); printf(“ c = %d”,c); } Output: a = 9 b = 12 c = 153 ( 12 * 9 + 5 * 9) /* prefix and postfix operators */ #include int main() { int a = 7, b = 12, c; c = b * (a++) + 5 * (++a); printf(“ a = %d”, a); printf(“ b = %d”,b); printf(“ c = %d”,c); } Output: a = 9 b = 12 c = 136 ( 12 * 8 + 5 * 8) /* postfix operators */ #include int main() { int a = 7, b = 12, c; c = b * (a++) + 5 * (a++); printf(“ a = %d”, a); printf(“ b = %d”,b); printf(“ c = %d”,c); } Output: a = 9 b = 12 c = 119 ( 12 * 7 + 5 * 7)
Posted on: Fri, 28 Jun 2013 04:53:26 +0000

Trending Topics



as been a busy day! In addition to two gravely injured
The Past Simple Tense in English! We use the past simple tense or
Nah,manajer arema Iwan Budianto yg daridulu antek bakrie sejati
HOW GEORGE SOROS & N.M. ROTHSCHILDS SHALL DESTROY THE EURO
Indkøbt bla ny hækkeklipper til batter. BOSCH... hold da op den
This one might bore some of you or gross out others, but it is

Recently Viewed Topics




© 2015