C: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 1: Line 1:
... a programming language to follow [[wikipedia:B (programming language)|B]]. [[wikipedia:C (programming language)|C]] is the core language of Unix/Linux and the liberation of it's compiler software, ''gcc'', a foundation of the Free Software movement.
... a programming language to follow [[wikipedia:B (programming language)|B]]. [[wikipedia:C (programming language)|C]] is the core language of Unix/Linux and the liberation of it's compiler software, ''gcc'' (or the Gnu's Not Unix C Compiler), a foundation of the Free Software movement.


== Variables ==
== Variables ==

Revision as of 22:01, 18 October 2010

... a programming language to follow B. C is the core language of Unix/Linux and the liberation of it's compiler software, gcc (or the Gnu's Not Unix C Compiler), a foundation of the Free Software movement.

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);
}