ABOUT C
○ C is a programming language.
○ It is a low-level programming language.
○ That was developed by Dennis M. Ritchie at Bell Labs.
○ And firstly implemented in 1972.
○ C is very helpful to Develop UNIX operating system.
○ The C compiler, and essentially all UNIX application programs have been written in C.
○ C become a widely used professional language.
FEATURE OF C
○ C is Easy to learn.
○ C is a Structured language.
○ It produces more efficient programs.
○ It can handle low-level activities.
○ It can be compiled on a variety of computer platforms.
FACTS ABOUT C PROGRAMMING
○ C was invented to write an operating system called UNIX.
○ C is a successor of B language which was introduced around the early 1970's.
○ The language was formalized in 1988 by the American National Standard Institute (ANSI).
○ The UNIX OS was totally written in C.
○ Today C is the most widely used and popular System Programming Language.
○ Most of the state-of-the-art software have been implemented using C.
○ Today's most popular Linux OS and RDBMS MySQL have been written in C.
USES OF C
○ Operating Systems (FOR UNIX KERNAL).
○ Language Compilers.
○ Assemblers.
○ Text Editors (LIKE VIM TEXT EDITOR).
○ Network Drivers.
○ Modern Programs.
○ Databases.
○ Utilities.
REQUIREMENTS (ENVIRONMENT SET UP)
•For setting up the environment for C programming language, it isis done by two ways:
(a) Text Editor and
(b) The C Compiler
I prefer to use C compiler, for download use below links to download compiler ....
1-TURBO C COMPILER
2-CODE BLOCKER COMPILER
3-MinGW COMPILER
Note-Download the compiler according to your machine configuration like 32 bit or 64 bit and according to your operating system.
BEST BOOKS
- The C Programming Language is written by Brian W. Kernighan and Dennis M. Ritchie.
- C: The Complete Reference is written by Herbert Schildt.
- Programming in ANSI C is written by E Balagurusamy.
- Let Us C is written by Yashavant Kanetkar.
- Head First C is written by David Griffiths.
EXAMPLE OF A C PROGRAM
// this is single line comment
/* this is a multiline comment* /
//program to displays the name of "Hackers Rocks"
#include<stdio.h> // header file
void main() //main function
{
printf("Hackers Rocks"); //show on screen
}
Explanation:-
1- Comment:
◘ It is the statement in the programs which compiler ignores.
◘ It increases readability of the program.
◘ Comments are of two type , single line and multi-line comment.
2- Header File:
◘ stdio is a header file.
◘ stdio stands for "Standard input output".
◘ It contains definition of input/output facilities in C programming.
3- Main():
◘ whenever parenthesis " () " are used. It is called function in C programming.
◘ main() function is like the entry point in the program.
4-printf:
◘ printf() is also a function.
◘ the definition (work ) of printf is to display whatever is written inside the parenthesis ( ).
◘ the definition of printf is given by stdio.h file.
Also READ THIS:-
1 comment:
Of Course this is type of low level programming but very helpful for beginners who want to adopt programming as a profession.
Post a Comment