introduction to c programming language
TRANSCRIPT
An Introduction to C Programming Language
Intro
C is the famous programming language designed to develop system application program.
IntroIt is known as the starting of
every programming language all the basics of a program language starts from C language.
C is known as general purpose procedural programming language.
HistoryDeveloped by M. Dennis
Ritchie at the Bell laboratories in the year of 1972.
C is known as high level language because it has the power of a lower level language and easy syntax like high level language.
Why C used as a professional programming language?
Easy to learnIt’s a structured programming
language
Why C used as a professional programming language?
Can handle low level programsCompiled code can be used in
different computers
Features of C
C is a robust languageC is a highly portable language
means once compiled; the code can be run in any computer.
What is Compiler?
Compiler is a computer program that transforms the human written language into machine level language.
What is Compiler?
In general words computer takes the code written by you and converts it into binary code.
Structure & Syntax of a C Program
#include<stdio.h>#include<conio.h>void Main()clrscr();{Printf(“my first C program”);}
Description of Code:-
#- Prerocessor of program
Include-Include is a keyword
Description of Code:-
Stdio.h-Standard input/output header file
Conio.h-Console input/output header file
Description of Code:-
Void-is a keyword that collects the garbage value
Main()- main() identifies starting of the program execution
Description of Code:-
Clrscr()- To clear the console screen
{, }-Group all statements together
Printf()-It is a function to print the output on screen.
C Data types
Data type of C language mostly divided into 5 major types
int, char, float, double, void
C Data types
int char float
void double
C Data types
Int –Used to identify an integer valueChar- Used to identify a characterFloat- Used to identify floating point
typeDouble- Used to identify floating
point typeVoid- denotes to type with garbage
value
Variable:-
Variable is a stored data memory allocated to use it in future and we can change the value too.
Variable:-
Syntax- type variable name;
Ex- int a, b, c;
Explanation of Example
Int-Data type
A, b, c variables
Explanation of Example
Int-Data type
A, b, c variables
;-Identifies the end of statement.
End of Slide
This is a simple introduction to C basic that will be elaborated in further classes. If you want to be one of the programming professional then please visit our website for further details about C demo classes and new session.
Thank You