C is a general-purpose, Computer Programming Language. The C programming language was developed by Dennis Ritchie at AT&T Bell Laboratories in the early 1970s.
C is a general-purpose, Computer Programming Language. The C programming language was
developed by Dennis Ritchie at AT&T Bell
Laboratories in the early 1970s. It was not until the late 1970s, however, that this
programming language began to gain widespread
popularity and support. This was because until that time C compilers were not available for
commercial use outside of Bell Laboratories.
Unix operating system, which was also developed at Bell Laboratories, had C as its
'standard' programming language.
In fact, well over 90% of the operating system itself was written in the C language!
MS-DOS is the most popular environment for the C language.
There are many Compilers available on internet for C-Language like Turbo C++, Borland C++ etc. Download any one and Install.
// is used for Single Line Comment
/* is used for Multiple Line Comment */
For Example:
// This is Single Line Comment.
/* And This
is Multiple Line
Comment. */
All the code with beginning two slash // are considered comments and do not effect the program.
#include<stdio.h>
#include<conio.h>
void main()
{
//TODO Code Here!!!
getch();
}
In 'C' programming language all library functions are included in different
header files in different categories with .h
extension.
#
are the directives for the preprocessor. this
sentence tells compiler to
include the header file.
stdio
stands for 'standard input output'. As it is a header
file so .h
extension is there.
It contains some standard functions related to input and output such as printf
and scanf
.
conio.h
is a C header file used mostly by
MS-DOS compilers to provide console
input/output.
void main( )
: All executed statements
must be written inside the main body because
execution starts from main( )
. void main( )
is the point
from where program begin their execution. In C
language all programs have a main function.
getch( )
function prompts the user to
press a character and that character is not
printed on screen, getch
header file is conio.h
.
.cpp
.