Log in / create account | Login with OpenID
DocForge
Programmer's Wiki

C

From DocForge

This page is a stub. It's lacking in details and can use your help. Please contribute your knowledge to this page.

C is a programming language which was created by Brian Kernighan and Dennis Ritchie to aid in the implementation of the Unix operating system. C is a compiled language typically used for systems programming (operating system-kernels and drivers, utilities and services).

C is also the basis for some scripting languages, such as PHP, perl, ruby, python and the java virtual machine. Many scripting languages have been created with the intent of speeding development of projects which would otherwise have been implemented in a compiled language such as C.

[edit] Characteristics

[edit] Hello World

A simple Hello World program looks like this.

#include <stdio.h> /* includes prototypes for IO functions */
 
/* This is the standard entry function, main.
The function parameters are optional - the first is an integer holding the number of arguments that the program was called with. The second is an array of strings, holding the arguments.
The main() function should return an integer in standard c. Normally, returning 0 indicates success. Returning non-zero indicates some error. */
 */
int main(int argc, char** argv) {
    puts("Hello world"); /* prints 'Hello World' and a newline to standard output */
    return 0; /* indicate success */
}

[edit] Descendants

Retrieved from "http://docforge.com/wiki/C"
Do you have information or insights to contribute to this article? Please feel free to edit this page. Ask questions or contribute to the discussion on this article's talk page.