C (programming language): Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Alex Bravo
(WP intro + Hello World example)
 
imported>Alex Bravo
mNo edit summary
Line 11: Line 11:
     return 0;
     return 0;
  }
  }
[[Category:CZ Live]]
[[Category:Computers Workgroup]]

Revision as of 12:27, 23 February 2007

C is a general-purpose, procedural, imperative computer programming language developed in 1972 by Dennis Ritchie at the Bell Telephone Laboratories for use with the Unix operating system. It has since spread to many other platforms, and is now one of the most widely used programming languages. C has also greatly influenced many other popular languages, especially C++, which was originally designed as an enhancement to C. It is the most commonly used programming language for writing system software, though it is also widely used for writing applications.

Syntax

Hello World

#include <stdio.h>

int main() {
   printf("Hello, world!\n");
   return 0;
}