SlideShare a Scribd company logo
What is C language:
•C is mother language of all programming language.
•It is a popular computer programming language.
•It is procedure-oriented programming language.
•It is also called mid level programming language.
History of c language:
C programming 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 known as founder of c language.
It was developed to be used in UNIX Operating
system.
It inherits many features of previous languages
such as B and BPCL.
Features of C Language:
There are many features of c language are given below.
• Machine Independent or Portable
• Mid-level programming language
• structured programming language
• Rich Library
• Memory Management
• Fast Speed
• Pointers
• Recursion
• Extensible
Data types in C language:
There are four types of data types in C language.
Types Data Types
Basic Data Type int, char, float, double
Derived Data Type array, pointer, structure, union
Enumeration Data Type enum
Void Data Type void
Keywords in C Language:
A keyword is a reserved word. You cannot use it as a variable name,
constant name etc.
There are 32 keywords in C language as given below:
auto break case char const continue default do
double else enum extern float for goto if
int long register return short signed sizeof static
struct switch typedef union unsigned void volatile while
Operators in C language:
There are following types of operators to perform different
types of operations in C language.
• Arithmetic Operators
• Relational Operators
• Shift Operators
• Logical Operators
• Bitwise Operators
• Ternary or Conditional Operators
• Assignment Operator
• Misc Operator
C if else statement:
There are many ways to use if statement in C language:
• If statement
• If-else statement
• If else-if ladder
• Nested if
if statement:
In if statement is used to execute the code if condition is true.
syntax:
if(expression){
//code to be execute
}
If else statement:
The if-else statement is used to execute the code if condition is
true or false.
Syntax:
if(expression){
//code to be executed if condition is true
}else{
//code to be executed if condition is false
}
C Switch Statement:
Syntax:
switch(expression){
case value1:
//code to be executed;
break; //optional
case value2:
//code to be executed;
break; //optional
default:
code to be executed if all cases are not matched;
Loops in C language:
Loops are used to execute a block of code or a part of program
of the program several times.
Types of loops in C language:
There are 3 types of loops in c language.
• do while
• while
• for
do-while loop in C:
It is better if you have to execute the code at least once.
Syntax:
do{
//code to be executed
}while(condition);
while loop in c language:-
It is better if number of iteration is not known by the user.
Syntax:
while(condition){
//code to be executed
}
For loop in C language:
It is good if number of iteration is known by the user.
Syntax:
for(initialization;condition;incr/decr){
//code to be executed
}
Functions in C language:
To perform any task, we can create function. A function can be
called many times. It provides modularity and code reusability.
Advantage of function:
• Code Resuability
• Code optimization
Array in C:
Array in C language is a collection or group of elements
(data). All the elements of array are homogeneous(similar). It
has contiguous memory location.
Declaration of array:
data_type array_name[array_size];
Types of array:
• 1-D Array
• 2-D Array
Advantage of array:
• Code Optimization
• Easy to traverse data
• Easy to sort data
• Random Access
Pointer in c language
• Pointer is a user defined data_type which create the special types of
variables.
• It can hold the address of primitive data type like int, char, float,
double or user define datatypes like function, pointer etc.
• it is used to retrieving strings, trees etc. and used with arrays,
structures and functions.
Advantage of pointer in c
• Pointer reduces the code and improves the performance.
• We can return multiple values from function using pointer.
• It make you able to access any memory location in the computer’s
memory.
THANK YOU

More Related Content

What's hot (20)

PPTX
C programming language
Maha lakshmi
 
PPT
C language introduction
musrath mohammad
 
PPT
C PROGRAMMING
Stalongiles Philip
 
PPT
Tokens_C
Prabhu Govind
 
PPT
Chapter3
Kamran
 
PPT
The smartpath information systems c pro
The Smartpath Information Systems,Bhilai,Durg,Chhattisgarh.
 
PDF
Learning c - An extensive guide to learn the C Language
Abhishek Dwivedi
 
PPT
Unit 4 Foc
JAYA
 
PPT
Introduction to C Programming
MOHAMAD NOH AHMAD
 
PPT
Brief introduction to the c programming language
Kumar Gaurav
 
PDF
Features of c
Hitesh Kumar
 
PPTX
C_Programming_Notes_ICE
Gilbert NZABONITEGEKA
 
ODP
CProgrammingTutorial
Muthuselvam RS
 
PPT
C language
spatidar0
 
PPTX
A brief introduction to C Language
Mohamed Elsayed
 
PPTX
Unit ii
sathisaran
 
DOCX
Features of c language 1
srmohan06
 
PDF
Programming in C- Introduction
savitamhaske
 
PPTX
Introduction to c programming language
sanjay joshi
 
C programming language
Maha lakshmi
 
C language introduction
musrath mohammad
 
C PROGRAMMING
Stalongiles Philip
 
Tokens_C
Prabhu Govind
 
Chapter3
Kamran
 
The smartpath information systems c pro
The Smartpath Information Systems,Bhilai,Durg,Chhattisgarh.
 
Learning c - An extensive guide to learn the C Language
Abhishek Dwivedi
 
Unit 4 Foc
JAYA
 
Introduction to C Programming
MOHAMAD NOH AHMAD
 
Brief introduction to the c programming language
Kumar Gaurav
 
Features of c
Hitesh Kumar
 
C_Programming_Notes_ICE
Gilbert NZABONITEGEKA
 
CProgrammingTutorial
Muthuselvam RS
 
C language
spatidar0
 
A brief introduction to C Language
Mohamed Elsayed
 
Unit ii
sathisaran
 
Features of c language 1
srmohan06
 
Programming in C- Introduction
savitamhaske
 
Introduction to c programming language
sanjay joshi
 

Similar to C programmimng basic.ppt (20)

PPTX
C Programming Language Tutorial for beginners - JavaTpoint
JavaTpoint.Com
 
PPTX
Introduction to c
amol_chavan
 
PPTX
C programming language tutorial
javaTpoint s
 
PPTX
C_Progragramming_language_Tutorial_ppt_f.pptx
maaithilisaravanan
 
PPTX
venkatesh.pptx
KishoreRedla
 
PPTX
Introduction to C programming
Rutvik Pensionwar
 
DOCX
Complete c programming presentation
nadim akber
 
PDF
C programing Tutorial
Mahira Banu
 
DOCX
C programming language Reference Note
Chetan Thapa Magar
 
PPTX
Introduction to c programming
Alpana Gupta
 
PPTX
C programming language tutorial
Dr. SURBHI SAROHA
 
PPTX
Introduction to c
Ajeet Kumar
 
PDF
Basics of C Prog Lang.pdf
KalighatOkira
 
PPT
C material
tarique472
 
PDF
Basic Information About C language PDF
Suraj Das
 
PPTX
C presentation! BATRA COMPUTER CENTRE
jatin batra
 
PDF
Learn c language Important topics ( Easy & Logical, & smart way of learning)
Rohit Singh
 
DOCX
Let's us c language (sabeel Bugti)
Unviersity of balochistan quetta
 
PPTX
C programming language:- Introduction to C Programming - Overview and Importa...
SebastianFrancis13
 
PPTX
C language (1).pptxC language (1C language (1).pptx).pptx
RutviBaraiya
 
C Programming Language Tutorial for beginners - JavaTpoint
JavaTpoint.Com
 
Introduction to c
amol_chavan
 
C programming language tutorial
javaTpoint s
 
C_Progragramming_language_Tutorial_ppt_f.pptx
maaithilisaravanan
 
venkatesh.pptx
KishoreRedla
 
Introduction to C programming
Rutvik Pensionwar
 
Complete c programming presentation
nadim akber
 
C programing Tutorial
Mahira Banu
 
C programming language Reference Note
Chetan Thapa Magar
 
Introduction to c programming
Alpana Gupta
 
C programming language tutorial
Dr. SURBHI SAROHA
 
Introduction to c
Ajeet Kumar
 
Basics of C Prog Lang.pdf
KalighatOkira
 
C material
tarique472
 
Basic Information About C language PDF
Suraj Das
 
C presentation! BATRA COMPUTER CENTRE
jatin batra
 
Learn c language Important topics ( Easy & Logical, & smart way of learning)
Rohit Singh
 
Let's us c language (sabeel Bugti)
Unviersity of balochistan quetta
 
C programming language:- Introduction to C Programming - Overview and Importa...
SebastianFrancis13
 
C language (1).pptxC language (1C language (1).pptx).pptx
RutviBaraiya
 
Ad

More from ASIT Education (20)

PPTX
COMMON PROBLEMS FACING WITH TABLETS
ASIT Education
 
PPTX
Simple hardware problems facing in pc's
ASIT Education
 
DOCX
Amc square IT services
ASIT Education
 
PPT
learn JAVA at ASIT with a placement assistance.
ASIT Education
 
PPT
Learn my sql at amc square learning
ASIT Education
 
PPT
Learn joomla at amc square learning
ASIT Education
 
PPT
learn ANDROID at AMC Square Learning
ASIT Education
 
PPT
Learn spring at amc square learning
ASIT Education
 
PPT
Learn cpp at amc square learning
ASIT Education
 
PPT
Learn perl in amc square learning
ASIT Education
 
PPT
Learn c sharp at amc square learning
ASIT Education
 
PPT
Learn Ruby Programming in Amc Square Learning
ASIT Education
 
PPT
learn sharepoint at AMC Square learning
ASIT Education
 
PPT
Introduction to software testing
ASIT Education
 
PPT
Ruby programming introduction
ASIT Education
 
PPT
Introduction to vm ware
ASIT Education
 
PPT
Introduction to software testing
ASIT Education
 
PPT
Introduction to phython programming
ASIT Education
 
PPT
Introduction to java programming
ASIT Education
 
PPTX
Introduction to internet
ASIT Education
 
COMMON PROBLEMS FACING WITH TABLETS
ASIT Education
 
Simple hardware problems facing in pc's
ASIT Education
 
Amc square IT services
ASIT Education
 
learn JAVA at ASIT with a placement assistance.
ASIT Education
 
Learn my sql at amc square learning
ASIT Education
 
Learn joomla at amc square learning
ASIT Education
 
learn ANDROID at AMC Square Learning
ASIT Education
 
Learn spring at amc square learning
ASIT Education
 
Learn cpp at amc square learning
ASIT Education
 
Learn perl in amc square learning
ASIT Education
 
Learn c sharp at amc square learning
ASIT Education
 
Learn Ruby Programming in Amc Square Learning
ASIT Education
 
learn sharepoint at AMC Square learning
ASIT Education
 
Introduction to software testing
ASIT Education
 
Ruby programming introduction
ASIT Education
 
Introduction to vm ware
ASIT Education
 
Introduction to software testing
ASIT Education
 
Introduction to phython programming
ASIT Education
 
Introduction to java programming
ASIT Education
 
Introduction to internet
ASIT Education
 
Ad

Recently uploaded (20)

PPTX
PPT-Q1-WK-3-ENGLISH Revised Matatag Grade 3.pptx
reijhongidayawan02
 
PPTX
Neurodivergent Friendly Schools - Slides from training session
Pooky Knightsmith
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PPTX
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PPTX
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
PPTX
GRADE-3-PPT-EVE-2025-ENG-Q1-LESSON-1.pptx
EveOdrapngimapNarido
 
PDF
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PPTX
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PPT
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
PPTX
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
PPTX
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
PPTX
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
PPTX
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PPTX
PPT-Q1-WEEK-3-SCIENCE-ERevised Matatag Grade 3.pptx
reijhongidayawan02
 
PPT
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
PPT-Q1-WK-3-ENGLISH Revised Matatag Grade 3.pptx
reijhongidayawan02
 
Neurodivergent Friendly Schools - Slides from training session
Pooky Knightsmith
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
GRADE-3-PPT-EVE-2025-ENG-Q1-LESSON-1.pptx
EveOdrapngimapNarido
 
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PPT-Q1-WEEK-3-SCIENCE-ERevised Matatag Grade 3.pptx
reijhongidayawan02
 
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 

C programmimng basic.ppt

  • 1. What is C language: •C is mother language of all programming language. •It is a popular computer programming language. •It is procedure-oriented programming language. •It is also called mid level programming language.
  • 2. History of c language: C programming 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 known as founder of c language. It was developed to be used in UNIX Operating system. It inherits many features of previous languages such as B and BPCL.
  • 3. Features of C Language: There are many features of c language are given below. • Machine Independent or Portable • Mid-level programming language • structured programming language • Rich Library • Memory Management • Fast Speed • Pointers • Recursion • Extensible
  • 4. Data types in C language: There are four types of data types in C language. Types Data Types Basic Data Type int, char, float, double Derived Data Type array, pointer, structure, union Enumeration Data Type enum Void Data Type void
  • 5. Keywords in C Language: A keyword is a reserved word. You cannot use it as a variable name, constant name etc. There are 32 keywords in C language as given below: auto break case char const continue default do double else enum extern float for goto if int long register return short signed sizeof static struct switch typedef union unsigned void volatile while
  • 6. Operators in C language: There are following types of operators to perform different types of operations in C language. • Arithmetic Operators • Relational Operators • Shift Operators • Logical Operators • Bitwise Operators • Ternary or Conditional Operators • Assignment Operator • Misc Operator
  • 7. C if else statement: There are many ways to use if statement in C language: • If statement • If-else statement • If else-if ladder • Nested if
  • 8. if statement: In if statement is used to execute the code if condition is true. syntax: if(expression){ //code to be execute }
  • 9. If else statement: The if-else statement is used to execute the code if condition is true or false. Syntax: if(expression){ //code to be executed if condition is true }else{ //code to be executed if condition is false }
  • 10. C Switch Statement: Syntax: switch(expression){ case value1: //code to be executed; break; //optional case value2: //code to be executed; break; //optional default: code to be executed if all cases are not matched;
  • 11. Loops in C language: Loops are used to execute a block of code or a part of program of the program several times. Types of loops in C language: There are 3 types of loops in c language. • do while • while • for
  • 12. do-while loop in C: It is better if you have to execute the code at least once. Syntax: do{ //code to be executed }while(condition);
  • 13. while loop in c language:- It is better if number of iteration is not known by the user. Syntax: while(condition){ //code to be executed }
  • 14. For loop in C language: It is good if number of iteration is known by the user. Syntax: for(initialization;condition;incr/decr){ //code to be executed }
  • 15. Functions in C language: To perform any task, we can create function. A function can be called many times. It provides modularity and code reusability. Advantage of function: • Code Resuability • Code optimization
  • 16. Array in C: Array in C language is a collection or group of elements (data). All the elements of array are homogeneous(similar). It has contiguous memory location. Declaration of array: data_type array_name[array_size]; Types of array: • 1-D Array • 2-D Array
  • 17. Advantage of array: • Code Optimization • Easy to traverse data • Easy to sort data • Random Access
  • 18. Pointer in c language • Pointer is a user defined data_type which create the special types of variables. • It can hold the address of primitive data type like int, char, float, double or user define datatypes like function, pointer etc. • it is used to retrieving strings, trees etc. and used with arrays, structures and functions.
  • 19. Advantage of pointer in c • Pointer reduces the code and improves the performance. • We can return multiple values from function using pointer. • It make you able to access any memory location in the computer’s memory.