Difference between revisions of "C Specifics"

esse quam videri
Jump to: navigation, search
m (Variables)
m
Line 1: Line 1:
 
[[Programming Club]]
 
[[Programming Club]]
 
:
 
:
==Variables==
+
==File Structure==
===Declaration===
+
===Include Files===
Variable declaration in standard C requires 3 simple commands.
+
===Header Files===
*First, tell the computer what ''type'' of variable you would like to store.
 
*Next, give the variable a ''unique name''.
 
*Finally, ''end'' your declaration.
 
<div style="border:1px dashed black">
 
:
 
:char VariableName;
 
:
 
:
 
</div>
 
===Storage===
 
===Initialization===
 
Variable initialization may only occur once you have declared a variable.
 
To initialize a variable in standard C, simply use the assignment operator (=) immediately after the variable declaration, preceding the semi-colon.
 
<div style="border: 1px dashed black">
 
:
 
:int VariableName = 5;
 
:
 
:
 
</div>
 
===Assignment===
 
Assigning a variable a value in standard C, is as simple as placing the assignment operator (=) in-between the object name and value.
 
 
 
<div style="border:1px dashed black">
 
:
 
:int MyInt;
 
:MyInt = 0;
 
:
 
:
 
</div>
 
 
 
===Allocation===
 
===Reallocation===
 
===Deallocation===
 
 
 
==Functions==
 
===Declaration===
 
===Storage===
 
===Initialiation===
 
==Structs==
 
===Declaration===
 
===Initialization===
 
==Include Files==
 
==Header Files==
 
 
==Preprocessor Directives==
 
==Preprocessor Directives==
 +
==Features==

Revision as of 15:32, 16 September 2009

Programming Club

File Structure

Include Files

Header Files

Preprocessor Directives

Features