C PROGRAMMING
INDEX
1 What is C Programming Language
2 History of C Language
3 Features of C Language
4 How to install C in your pc
5 First C Program
WHAT IS C LANGUAGE ?
C is a general-purpose, high-level language that was originally
developed by Dennis M. Ritchie to develop the UNIX operating
system at Bell Labs.
C programming is considered as the base for other programming
languages,
* Why c is called general purpose language ?
Ans :
In computer software, a general-purpose programming language is
a language designed to be used for writing all types of software in a
wide variety of application domains.
HISTORY OF C LANGUAGE
C language was developed in 1972 by Dennis Ritchie at bell
laboratories of AT&T (American Telephone & Telegraph), located
in U.S.A.
Dennis Ritchie is the founder of C language.
It was developed to overcome the problems of previous languages
such as B, BCPL (Basic Combined Programming Language) etc.
Initially, C language was developed to be used in UNIX
operating system.
FEATURES OF C LANGUAGE
Simple
C is a simple language b coz it provides rich set of built in functions, data types etc.
Machine Independent
c programs can be executed in many machines with little bit or no change.
Structured prorgramming language
we can break the program into parts using functions. So, it is easy to understand and
modify.
Built in Functions
C provides a lot of inbuilt functions that makes the development fast.
Easy to learn
Made By C Language
Linux OS Written in C.
PHP Lang. Written in C.
MySQL Written in C.
-------------------------------------------------------------------------------
C has been written in Assembly Language.
USE OF C
Database System
Compiler
Operating System
Network Driver
Text Editors
C LANGUAGE BECOME VERY POPULER B COZ…
One of the early programming language.
Still the best programming language to learn
C is simple and easy to use
Modern programming concept based on C
It can be compiled on variety of computer platform
Universities preferred to add C lang. in their course
HOW TO INSTALL C
If you want to set up your environment for C language,
you need the following two software tools available on
your computer.
➢ TextEditor
➢ The C Compiler
OR
WHAT IS COMPILER ?
The source code written in source file is the human
readable source for your program.
It needs to be "compiled", into machine language so that
your CPU can actually execute the program as per the
instructions given.
The process of converting high-level programming into
machine language is known as compilation.
IDE FOR C LANGUAGE
Code Blocks
(www.codeblocks.org/)
Turbo C C++
(https://turboc.codeplex.com/)
CODEBLOCKS
TURBO C C++ IDE
FIRST C PROGRAM
#include <stdio.h>
#include <conio.h>
void main()
{
printf("Hello C Language");
getch();
}
#include <stdio.h> includes the standard input output library functions. The
printf() function is defined in stdio.h .
#include <conio.h> includes the console input output library functions. The
getch() function is defined in conio.h file.
void main() ::: The main() function is the entry point of every program in c
language. The void keyword specifies that it returns no value.
The printf() function is used to print data on the console.
The getch() function asks for a single character. Until you press any key, it
blocks the screen.
Extension
C program written into one or more text files with
extension ".c";
**************************************************