Difference between revisions of "Source Code"

From CDOT Wiki
Jump to: navigation, search
(OOP344)
(OOP344)
 
(6 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
<h1>Source Code</h1>
 
<h1>Source Code</h1>
  
<p text=blue>n += !a[i];      //kind of tricky way to count the zeroes in the array</p>
+
<h3>n += !a[i];      //kind of tricky way to count the zeroes in the array(for c only)</h3>
 +
<h3>~x + 1 = -x;  //bitwise operator</h3>

Latest revision as of 23:15, 23 June 2010

will put some c codes here


OOP344

Source Code

n += !a[i]; //kind of tricky way to count the zeroes in the array(for c only)

~x + 1 = -x; //bitwise operator