C
From GMpedia.org Wiki
- For technical limitations, C# points here. For the programming language, see CSharp.
C is the mother programming language of C++. It is a procedural programming language which means that everything is executed in a certain order. This order can be changed through the use of control loops.
[edit] Syntax
C=C+1 C+=1 C++
All of these increment 1 to the variable "C". The three statements are equivalent, although when compiled the last statement will be slightly more efficient than the previous two. "C+=1" is also more efficient than "C=C+1".
C=C-1 C-=1 C--
All of these subtract 1 from the variable "C".
[edit] Data Types
C requires a data type for each piece of data that is defined by the programmer. The predefined data types in C are:
- void: no specific data type
- int: integer number, usually takes up 4 bytes
- char: single character as defined in the ASCII table, uses 1 byte
- float: floating point number with a certain precision, usually takes up 4 bytes
- double: floating point number with a greater precision than a float, usually takes up 8 bytes

