Open main menu

CDOT Wiki β

Difference between revisions of "Source Code"

(OOP344)
(OOP344)
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
 
<h1>Source Code</h1>
 
<h1>Source Code</h1>
  
<p>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