Fix this program

Fix this program

Page 1 of 1

3 Replies - 941 Views - Last Post: 30 September 2007 - 08:46 AM Rate Topic: -----

#1 thagafnh  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 30-September 07

Fix this program

Post icon  Posted 30 September 2007 - 08:18 AM

I need to know the result of this small progarm and rwrite this program with good style .

int a = 0, b = 0, c = b;
// this is the declaration for the variables *//
/*
Lets see how tight I can get this code ... */

a = b++; // the value of x here is

a = b--;

c = ++a - b++ + a--;

---------

Can I know the result of the variable C and re writting the progarm with readable codes

Thanks
Is This A Good Question/Topic? 0
  • +

Replies To: Fix this program

#2 PennyBoki  Icon User is offline

  • system("revolution");
  • member icon

Reputation: 53
  • View blog
  • Posts: 2,334
  • Joined: 11-December 06

Re: Fix this program

Posted 30 September 2007 - 08:27 AM

Hi thagafnh, welcome. I'm sorry to say but this homework is not that difficult, so you should try it on your own. Read the forum rules please.
Was This Post Helpful? 0
  • +
  • -

#3 thagafnh  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 30-September 07

Re: Fix this program

Posted 30 September 2007 - 08:45 AM

View PostPennyBoki, on 30 Sep, 2007 - 08:27 AM, said:

Hi thagafnh, welcome. I'm sorry to say but this homework is not that difficult, so you should try it on your own. Read the forum rules please.



View Postthagafnh, on 30 Sep, 2007 - 08:40 AM, said:

View PostPennyBoki, on 30 Sep, 2007 - 08:27 AM, said:

Hi thagafnh, welcome. I'm sorry to say but this homework is not that difficult, so you should try it on your own. Read the forum rules please.



Please this a first particpation . I need to re write with goog style to be readable .

Thanks and apprerciate your effort

View Postthagafnh, on 30 Sep, 2007 - 08:42 AM, said:

View PostPennyBoki, on 30 Sep, 2007 - 08:27 AM, said:

Hi thagafnh, welcome. I'm sorry to say but this homework is not that difficult, so you should try it on your own. Read the forum rules please.



View Postthagafnh, on 30 Sep, 2007 - 08:40 AM, said:

View PostPennyBoki, on 30 Sep, 2007 - 08:27 AM, said:

Hi thagafnh, welcome. I'm sorry to say but this homework is not that difficult, so you should try it on your own. Read the forum rules please.



Please this a first particpation . I need to re write with good style to be readable .

Thanks and apprerciate your effort
Thanks and apprerciate your effort

Was This Post Helpful? 0
  • +
  • -

#4 PennyBoki  Icon User is offline

  • system("revolution");
  • member icon

Reputation: 53
  • View blog
  • Posts: 2,334
  • Joined: 11-December 06

Re: Fix this program

Posted 30 September 2007 - 08:46 AM

View Postthagafnh, on 30 Sep, 2007 - 08:42 AM, said:

Please this a first particpation . I need to re write with goog style to be readable .

Thanks and apprerciate your effort

read the rules please C/C++ FORUM RULES
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1