C is an open source programming language created in 1972 by Dennis Ritchie.
#4on PLDB | 51Years Old | 2mRepos |
C (, as in the letter c) is a general-purpose, imperative computer programming language, supporting structured programming, lexical variable scope and recursion, while a static type system prevents many unintended operations. By design, C provides constructs that map efficiently to typical machine instructions, and therefore it has found lasting use in applications that had formerly been coded in assembly language, including operating systems, as well as various application software for computers ranging from supercomputers to embedded systems. C was originally developed by Dennis Ritchie between 1969 and 1973 at Bell Labs, and used to re-implement the Unix operating system. Read more on Wikipedia...
// Type your code here, or load an example.
int square(int num) {
return num * num;
}
#include <stdio.h>
int main() {
printf("Hello, world!\n");
return 0;
}
#include <stdio.h>
main()
{
printf("Hello World\n");
}
#ifndef HELLO_H
#define HELLO_H
void hello();
#endif
#include <stdio.h>
int main(void)
{
printf("hello, world\n");
}
C gets credit for the // comments, starting in 1972, but that's not really accurate. BCPL -- which begat B which begat C -- had // comments but they were not included in C until C99. C++ (which isn't included in their top 30 languages) brought back // comments from BCPL sometime between 1979 and 1985 (the first public release of cfront). Many C compilers included // comments as an extension prior to C99 but those were inspired by C++
auto break case char const continue default do double else enum extern float for goto if int long register return short signed sizeof static struct switch typedef union unsigned void volatile while