C programming language

From Computer History Wiki
Revision as of 03:48, 26 October 2009 by Neozeed (talk | contribs) (New page: The C language..... == Dialects == There are two popular dialects, the original was K&R C, which spread with the original C compiler, and pcc, the portable C compiler. Later there wa...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The C language.....

Dialects

There are two popular dialects, the original was K&R C, which spread with the original C compiler, and pcc, the portable C compiler. Later there was a ANSI standard to the C language, and it's usually refered to as just ANSI C.

hello world

K&R

#include <stdio.h>
int main(argc,*argv[])
int argc;
char *argv;
{
printf("Hello World\n");
return 0;
}

Ansi C

#include <stdio.h>
int main(int argc, char *argv[])
{
printf("Hello World\n");
return 0;
}

C was superseded by the C++ language.