C: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 1: Line 1:
A programming language that follows [[wikipedia:B (programming language)|B]].
[[wikipedia:C (programming language)|C]], a programming language that follows [[wikipedia:B (programming language)|B]].
 
== Variables ==
 
Variables in C are ''strictly typed'' meaning they always are one particular kind of representation of information (an integer number, a character, a string of text).
 
== Loops ==
 
Like, [[Bash]], C has a ''for'' loop:
 
<source lang="c">
for (var i=0; i<10; i++) {
    printf("Hello %d" % i);
}
</source>

Revision as of 20:58, 18 October 2010

C, a programming language that follows B.

Variables

Variables in C are strictly typed meaning they always are one particular kind of representation of information (an integer number, a character, a string of text).

Loops

Like, Bash, C has a for loop:

for (var i=0; i<10; i++) {
    printf("Hello %d" % i);
}