Difference between revisions of "Source Code"

From CDOT Wiki
Jump to: navigation, search
(OOP344)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<p>will put some c codes here</p>
 
<p>will put some c codes here</p>
  
n += !a[i];      //kind of tricky way to count the zeroes in the array
+
 
 +
====OOP344====
 +
 
 +
<h1>Source Code</h1>
 +
 
 +
<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