C (programming language): Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Alex Bravo
mNo edit summary
imported>Alex Bravo
mNo edit summary
Line 1: Line 1:
C is a general-purpose, procedural, imperative [[computer]] [[programming language]] developed in 1972 by [[Dennis M. Ritchie]] and [[Brian W. Kernighan]] at the Bell Telephone Laboratories for use with the [[Unix]] operating system. It has since spread to every other platform, and is now one of the most widely used programming languages. It has been adapted by ISO and ANSII, and is considered a standard programming language. C has also greatly influenced many other popular languages, especially [[C++]], which was originally designed by [[Bjarne Stroustroup]] as an enhancement to C. Due to its basic dual nature, being low-level as well as higly structured, it is the most commonly used programming language for writing system software, though it is also widely used for writing applications.
C is a general-purpose, procedural, imperative [[computer]] [[programming language]] developed in 1972 by [[Dennis M. Ritchie]] and [[Brian W. Kernighan]] at the Bell Telephone Laboratories for use with the [[Unix]] operating system. It has since spread to every other platform, and is now one of the most widely used programming languages. It has been adapted by ISO and ANSII, and is considered a standard programming language. C has also greatly influenced many other popular languages, especially [[C++]], which was originally designed by [[Bjarne Stroustroup]] as an enhancement to C. Due to its basic dual nature, being low-level as well as highly structured, it is the most commonly used programming language for writing system software, though it is also widely used for writing applications.


==Syntax==
==Syntax==

Revision as of 18:21, 23 February 2007

C is a general-purpose, procedural, imperative computer programming language developed in 1972 by Dennis M. Ritchie and Brian W. Kernighan at the Bell Telephone Laboratories for use with the Unix operating system. It has since spread to every other platform, and is now one of the most widely used programming languages. It has been adapted by ISO and ANSII, and is considered a standard programming language. C has also greatly influenced many other popular languages, especially C++, which was originally designed by Bjarne Stroustroup as an enhancement to C. Due to its basic dual nature, being low-level as well as highly structured, 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;
}

Explanation

  • #include <stdio.h> tells the compiler to include the contents of the header file stdio.h, which manages standard input and output, into the program before compiling.