Category:C: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 62: Line 62:
}</lang>
}</lang>


==Assignment==
===Assignment===
C allows you to define a variable as equal to a value, in more ways than just simple numerals.
C allows you to define a variable as equal to a value, in more ways than just simple numerals.
<lang C>int a = 3; //declare the variable a of type int, define it equal to decimal 3.
<lang C>int a = 3; //declare the variable a of type int, define it equal to decimal 3.