History of C Language
C was originally designed for and implemented on the UNIX operating system on the DEC PDP-ll, by Dennis Ritchie. C is the result of a development process that started with an older language called BCPL. BCPL was developed by Martin Richards, and it influenced a language called B, which was invented by Ken Thompson. B led to the development of C in the 1970s.
The ANSI C standard was finally adopted in December 1989, with the first copies becoming available in early 1990. The standard was also adopted by ISO (International Standards Organization), and the resulting standard was typically referred to as ANSI/ISO Standard C. In 1995, Amendment 1 to the C standard was adopted, which, among other things, added several new library functions. The 1989 standard for C, along with Amendment 1, became a base document for Standard C++, defining the C subset of C++. The version of C defined by the 1989 standard is commonly referred to as C89.
During the 1990s, a new standard for C was being developed. It was the 1999 standard for C, usually referred to as C99. In general, C99 retained nearly all of the features of C89. The C99 standardization committee focused on two main areas: the addition of several numeric libraries and the development of some special-use, but highly innovative, new features, such as variable-length arrays and the restrict pointer qualifier. These innovations have once again put C at the forefront of computer language development.
know about basic Command before creating c program.
C Basic commands |
Explanation |
#include <stdio.h> |
This is a preprocessor command that includes standard input output header file(stdio.h) from the C library before compiling a C program. |
int main() |
This is the main function from where execution of any C program begins. |
{ |
This indicates the beginning of the main function. |
/*_some_comments_*/ |
whatever is given inside the command “/* */” in any C program, won’t be considered for compilation and execution. |
printf(“Hello_World! “); |
printf command prints the output onto the screen. |
getch(); |
This command waits for any character input from keyboard. |
return 0; |
This command terminates C program (main function) and returns 0. |
} |
This indicates the end of the main function.
|
Example : Create a Simple c program.
#include<stdio.h>
void main()
{
printf("Hello world !.. ");
}