Difference between revisions of "Source Code"

From CDOT Wiki
Jump to: navigation, search
(OOP344)
(OOP344)
 
(5 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
<h1>Source Code</h1>
 
<h1>Source Code</h1>
  
<p bgcolor=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 00:15, 24 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