codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Rewrite this program with good style  thagafnh at 18:48 on Sunday, September 30, 2007
 


Can I know the result for the variable c ; and also re write the code to be in a good style and readable and not confiusing ?


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


  Re: Rewrite this program with good style  anand.vicky24 at 06:00 on Friday, February 15, 2008
 

int a = 0, b = c = 0;
a = 0
c = (++a)-(b++)+(a--);











CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
• mkdirs
• Re: Web Development Project
• ** Site Hacked ** javascript inserted...
• Losing background/text color when converting HTML to PDF
• hidden div block when displayed, displays at an offset of 200px only in IE 6..
• help - sketch
• Re: Perl Script - File Handling.
• Open a file from website
• Re: to open 5 terminals from one and also execute different commands on each terminal


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2008