Difference between revisions of "C (programming language)"
Jump to navigation
Jump to search
m (proper indent) |
|||
| Line 10: | Line 10: | ||
#include <unistd.h> | #include <unistd.h> | ||
| − | int main() | + | int |
| + | main() | ||
{ | { | ||
| − | write(0, "Hello World!\n", 13); | + | write (0, "Hello World!\n", 13); |
return 0; | return 0; | ||
} | } | ||
Revision as of 13:11, July 22, 2009
C is the name of a procedural, imperative programming language developed in 1972 by Dennis Ritchie at Bell Laboratories. It was a major improvement over the earlier languages BCPL and B.
C is still a popular choice for projects where speed and small program size are important considerations, such as embedded firmware. A significant portion of the Linux kernel was written in C. The syntax of C inspired many later languages such as C++, Java and C Sharp. Many C compilers also support low-level programming via integrated inline assemblers.
This programming language is now used and marketed more heavily by Microsoft.
"Hello World!" program
#include <unistd.h>
int
main()
{
write (0, "Hello World!\n", 13);
return 0;
}
See Also
- Free compiler, probably the most used free C compiler
- Open Watcom C Compiler, high quality free C/C++ compiler.
- Miracle C compiler, free c/c++ compiler.
- lcc, portable C compiler, free for non-commercial use.