Difference between revisions of "Source Code"

From CDOT Wiki
Jump to: navigation, search
(Created page with '<p>will put some c codes here</p>')
 
(OOP344)
 
(12 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>
 +
 +
 +
====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 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