Changes

Jump to: navigation, search

Langage C

301 bytes added, 19:41, 2 September 2015
/* chapter 6 (résumé) */
a = a % b; a %= b; // new allocation of a by modulo / same writting
'''Operateur unaire moins (-)''': to get back a negative number
 
<u>exemple</u>:
int a, b, c;
a = 5; // allocation of the value 5 to a
b = a; // allocation of a to B
c = a - -b; // b become negative
c = a - (-b); // same result that allows
c = a + b; // same result that allows
==== Trick ====
'''Warning''': don't mistake this : '=' & '==' => the first symbol correponds at the allocation / the second symbol corresponds at the test between two variables
952
edits