SlideShare a Scribd company logo
1 of 36
 Consists of a set of predefined rules.
 These rules form the syntax of that language.
 Hence learning a programming language is
nothing but learning of that language.
 Computer can understand only instructions written
in binary code ( 0 and 1), They do not directly read
or understand a any programming language. And
so a programming language is converted into
binary code by using a special program called
compiler.
 A program which translates instructions written in
a programming language into binary code is called
a compiler.
 When we write a program in C Language, what we
write is called Source Code.
 The compiler’s output is called executable code.
 C is a programming language developed at
AT&T Bell laboratories around 1972.
 It was designed and written by Dennis M.
Ritchie.
 C was standardized in 1989 by American
National Standard Institute (ANSI). So it came
to be known as ANSI C.
 C is a structured language. It breaks up a
program into small parts known as functions.
 Flow chart
use to define flow of any program.
symbolic representation of program.
use different symbols.
 Rectangle
 Parallelogram
 Diamond
 Lines
 oval
 Use to define process in program
 Use to define input and output in program
 Use to specify condition in program
 To show flow of the program
 Use to declare start and end of flow chart and
connect flow chart with other flow chart
pages also.
start
end
Input
outputoutput
conditionProcess if
true
Process if
false
start
end
Insert value of i
Print value of I
is less than
five
Print value of
I is greater
than five
If(i<5)
Declare variable I
as integer
Documentation
Symbolic Constant Definition
File Include Section
Global Variable Declaration
Main()
{
Declaration
Executable Statements
}
Function 1 Function 2
Function n….
starting
Section
Compulsory
section for all
C Programs
User Defined
Functions
 Compile is one type of program to convert
source code into machine level code,
 Compiler compile the code of block and
return the error and warning list.
 #include <stdio.h>
 #include <conio.h>
 void main()
{
printf(“My first program”);
getch();
}
 #include <stdio.h>
 #include <conio.h>
# : is pre possessive directive.
use to include header files before
start the program.
 Header file is collection of pre define
functions.
 Extension of header file is must “.h”.
 Header files are located in “INCLUDE” folder
of “TC”.
 void main()
{
main()
c compile founds main() to start execution of
program.
must declare main function in every program.
 {
 braces use to define starting of coding block.
 printf(“My First program”);
 printf() : use to print any formatted
string in output window of
Turbo c.
header file : stdio.h
( standard input output )
 getch();
 }
 getch() use to get 1 character from
keyboard.
} define end of coding block.
 Compile the source code with.
Alt + F9
Run the program with.
Crtl + F9
 C language is totally case sensitive language.
 All the statements of C language must
terminate with semi colon ( ; )
 My First program
file type extension
 C- Source file .C
 application file .EXE
 object file .OBJ
 Comment lines ignore by c compiler
// use for single line comment
/* */ use for multiline comment
 Integer
 Float
 Double
 Character
 Signed integer
range -32,768 to 32,767
occupy first bit as a sigh bit.
( + / - )
memory space ( 2 bytes )
 Unsigned integer
range 0 to 65,535
not occupy any bit as sign bit.
memory space ( 2 bytes )
Note : to declare unsigned integer variable
must use unsigned key word before integer.
 Use to store values with fiction point.
memory space ( 4 bytes) 32 bits
Double 64 bits(8 bytes)
Long double 80 bits(10 bytes)
 Default unsigned character
 8 bits ( 1 byte )
 Range : 0 to 255
 Signed character
 8 bits ( 1 byte )
 Range : -128 to 127
 int a = 10;
 printf(“Value of variable a is : %d”,a);
 o/p : Value of variable a is : 10
 %d use for integer values
 %f use for float values
 %c use for character
 %s use for String
 %l use for double values
 %lf use for long double values
 Use
 scanf() function
 Syntax :
 scanf(“format character ”, &variable name);
 int a;
 printf(“Enter value of a ”);
 scanf(“%d”,&a);
 printf(“Value of variable a is : %d”,a);
 o/p value of variable a is : 10
Note : assume that we entered 10 from
keyboard.

More Related Content

What's hot

C presentation book
C presentation bookC presentation book
C presentation bookkrunal1210
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programmingAlpana Gupta
 
Overview of c language
Overview of c languageOverview of c language
Overview of c languageshalini392
 
Pointers,virtual functions and polymorphism cpp
Pointers,virtual functions and polymorphism cppPointers,virtual functions and polymorphism cpp
Pointers,virtual functions and polymorphism cpprajshreemuthiah
 
Data types in C language
Data types in C languageData types in C language
Data types in C languagekashyap399
 
Class and object in C++
Class and object in C++Class and object in C++
Class and object in C++rprajat007
 
Functions in c language
Functions in c language Functions in c language
Functions in c language tanmaymodi4
 
Top C Language Interview Questions and Answer
Top C Language Interview Questions and AnswerTop C Language Interview Questions and Answer
Top C Language Interview Questions and AnswerVineet Kumar Saini
 
Data Types and Variables In C Programming
Data Types and Variables In C ProgrammingData Types and Variables In C Programming
Data Types and Variables In C ProgrammingKamal Acharya
 
C programming language tutorial
C programming language tutorial C programming language tutorial
C programming language tutorial javaTpoint s
 

What's hot (20)

C presentation book
C presentation bookC presentation book
C presentation book
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
Overview of c language
Overview of c languageOverview of c language
Overview of c language
 
C# classes objects
C#  classes objectsC#  classes objects
C# classes objects
 
C basics
C   basicsC   basics
C basics
 
Control statements in c
Control statements in cControl statements in c
Control statements in c
 
Pointers,virtual functions and polymorphism cpp
Pointers,virtual functions and polymorphism cppPointers,virtual functions and polymorphism cpp
Pointers,virtual functions and polymorphism cpp
 
Data types in C language
Data types in C languageData types in C language
Data types in C language
 
C++ How to program
C++ How to programC++ How to program
C++ How to program
 
Class and object in C++
Class and object in C++Class and object in C++
Class and object in C++
 
Functions in c language
Functions in c language Functions in c language
Functions in c language
 
Introduction to c++ ppt
Introduction to c++ pptIntroduction to c++ ppt
Introduction to c++ ppt
 
File handling in c++
File handling in c++File handling in c++
File handling in c++
 
Top C Language Interview Questions and Answer
Top C Language Interview Questions and AnswerTop C Language Interview Questions and Answer
Top C Language Interview Questions and Answer
 
C by balaguruswami - e.balagurusamy
C   by balaguruswami - e.balagurusamyC   by balaguruswami - e.balagurusamy
C by balaguruswami - e.balagurusamy
 
Data Types and Variables In C Programming
Data Types and Variables In C ProgrammingData Types and Variables In C Programming
Data Types and Variables In C Programming
 
File in C language
File in C languageFile in C language
File in C language
 
C programming language tutorial
C programming language tutorial C programming language tutorial
C programming language tutorial
 
C++ Language
C++ LanguageC++ Language
C++ Language
 
Function in c
Function in cFunction in c
Function in c
 

Similar to C Theory (20)

Cp week _2.
Cp week _2.Cp week _2.
Cp week _2.
 
Unit 2 introduction to c programming
Unit 2   introduction to c programmingUnit 2   introduction to c programming
Unit 2 introduction to c programming
 
C Programming UNIT 1.pptx
C Programming  UNIT 1.pptxC Programming  UNIT 1.pptx
C Programming UNIT 1.pptx
 
(Lect. 2 & 3) Introduction to C.ppt
(Lect. 2 & 3) Introduction to C.ppt(Lect. 2 & 3) Introduction to C.ppt
(Lect. 2 & 3) Introduction to C.ppt
 
Learn c language Important topics ( Easy & Logical, & smart way of learning)
Learn c language Important topics ( Easy & Logical, & smart way of learning)Learn c language Important topics ( Easy & Logical, & smart way of learning)
Learn c language Important topics ( Easy & Logical, & smart way of learning)
 
Lect '1'
Lect '1'Lect '1'
Lect '1'
 
C++ programming language basic to advance level
C++ programming language basic to advance levelC++ programming language basic to advance level
C++ programming language basic to advance level
 
c_pro_introduction.pptx
c_pro_introduction.pptxc_pro_introduction.pptx
c_pro_introduction.pptx
 
C++ AND CATEGORIES OF SOFTWARE
C++ AND CATEGORIES OF SOFTWAREC++ AND CATEGORIES OF SOFTWARE
C++ AND CATEGORIES OF SOFTWARE
 
C notes
C notesC notes
C notes
 
C Lang notes.ppt
C Lang notes.pptC Lang notes.ppt
C Lang notes.ppt
 
C tutorials
C tutorialsC tutorials
C tutorials
 
Unit-1 (introduction to c language).pptx
Unit-1 (introduction to c language).pptxUnit-1 (introduction to c language).pptx
Unit-1 (introduction to c language).pptx
 
C programming
C programmingC programming
C programming
 
C programming
C programmingC programming
C programming
 
Bcsl 031 solve assignment
Bcsl 031 solve assignmentBcsl 031 solve assignment
Bcsl 031 solve assignment
 
Unit 1 c - all topics
Unit 1   c - all topicsUnit 1   c - all topics
Unit 1 c - all topics
 
over all view programming to computer
over all view programming to computer over all view programming to computer
over all view programming to computer
 
Unit 2 ppt
Unit 2 pptUnit 2 ppt
Unit 2 ppt
 
Basic c
Basic cBasic c
Basic c
 

More from Shyam Khant

More from Shyam Khant (8)

Unit2.data type, operators, control structures
Unit2.data type, operators, control structuresUnit2.data type, operators, control structures
Unit2.data type, operators, control structures
 
Introducing to core java
Introducing to core javaIntroducing to core java
Introducing to core java
 
C++
C++C++
C++
 
Php
PhpPhp
Php
 
C++ theory
C++ theoryC++ theory
C++ theory
 
Java script
Java scriptJava script
Java script
 
SQL
SQLSQL
SQL
 
Hashing 1
Hashing 1Hashing 1
Hashing 1
 

Recently uploaded

Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 

Recently uploaded (20)

Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 

C Theory

  • 1.
  • 2.  Consists of a set of predefined rules.  These rules form the syntax of that language.  Hence learning a programming language is nothing but learning of that language.
  • 3.  Computer can understand only instructions written in binary code ( 0 and 1), They do not directly read or understand a any programming language. And so a programming language is converted into binary code by using a special program called compiler.  A program which translates instructions written in a programming language into binary code is called a compiler.  When we write a program in C Language, what we write is called Source Code.  The compiler’s output is called executable code.
  • 4.  C is a programming language developed at AT&T Bell laboratories around 1972.  It was designed and written by Dennis M. Ritchie.  C was standardized in 1989 by American National Standard Institute (ANSI). So it came to be known as ANSI C.  C is a structured language. It breaks up a program into small parts known as functions.
  • 5.  Flow chart use to define flow of any program. symbolic representation of program. use different symbols.
  • 6.  Rectangle  Parallelogram  Diamond  Lines  oval
  • 7.  Use to define process in program
  • 8.  Use to define input and output in program
  • 9.  Use to specify condition in program
  • 10.  To show flow of the program
  • 11.  Use to declare start and end of flow chart and connect flow chart with other flow chart pages also.
  • 13. start end Insert value of i Print value of I is less than five Print value of I is greater than five If(i<5) Declare variable I as integer
  • 14. Documentation Symbolic Constant Definition File Include Section Global Variable Declaration Main() { Declaration Executable Statements } Function 1 Function 2 Function n…. starting Section Compulsory section for all C Programs User Defined Functions
  • 15.  Compile is one type of program to convert source code into machine level code,  Compiler compile the code of block and return the error and warning list.
  • 16.  #include <stdio.h>  #include <conio.h>  void main() { printf(“My first program”); getch(); }
  • 17.  #include <stdio.h>  #include <conio.h> # : is pre possessive directive. use to include header files before start the program.
  • 18.  Header file is collection of pre define functions.  Extension of header file is must “.h”.  Header files are located in “INCLUDE” folder of “TC”.
  • 19.  void main() { main() c compile founds main() to start execution of program. must declare main function in every program.
  • 20.  {  braces use to define starting of coding block.
  • 21.  printf(“My First program”);  printf() : use to print any formatted string in output window of Turbo c. header file : stdio.h ( standard input output )
  • 22.  getch();  }  getch() use to get 1 character from keyboard. } define end of coding block.
  • 23.  Compile the source code with. Alt + F9 Run the program with. Crtl + F9
  • 24.  C language is totally case sensitive language.  All the statements of C language must terminate with semi colon ( ; )
  • 25.  My First program
  • 26. file type extension  C- Source file .C  application file .EXE  object file .OBJ
  • 27.  Comment lines ignore by c compiler // use for single line comment /* */ use for multiline comment
  • 28.  Integer  Float  Double  Character
  • 29.  Signed integer range -32,768 to 32,767 occupy first bit as a sigh bit. ( + / - ) memory space ( 2 bytes )
  • 30.  Unsigned integer range 0 to 65,535 not occupy any bit as sign bit. memory space ( 2 bytes ) Note : to declare unsigned integer variable must use unsigned key word before integer.
  • 31.  Use to store values with fiction point. memory space ( 4 bytes) 32 bits Double 64 bits(8 bytes) Long double 80 bits(10 bytes)
  • 32.  Default unsigned character  8 bits ( 1 byte )  Range : 0 to 255  Signed character  8 bits ( 1 byte )  Range : -128 to 127
  • 33.  int a = 10;  printf(“Value of variable a is : %d”,a);  o/p : Value of variable a is : 10
  • 34.  %d use for integer values  %f use for float values  %c use for character  %s use for String  %l use for double values  %lf use for long double values
  • 35.  Use  scanf() function  Syntax :  scanf(“format character ”, &variable name);
  • 36.  int a;  printf(“Enter value of a ”);  scanf(“%d”,&a);  printf(“Value of variable a is : %d”,a);  o/p value of variable a is : 10 Note : assume that we entered 10 from keyboard.