SlideShare a Scribd company logo
1 of 15
PRESENTED BY : ROHIT RAJ SINGH
6/24/2019 1SMS Institute of Technology, LUCKNOW
 Introduction of C ?
 Function used in C ?
 How to learn C language ?
 Which Special Symbol used in C ?
 Some necessary requirement for the
implementation of C program ?
 Instruction in C ?
 How to make a Program in C ?
 Interview FAQs ?
6/24/2019 2SMS Institute of Technology, LUCKNOW
 C is a programming language developed at
AT & T’s Bell Laboratories of USA in 1972.
 This language is designed and written by
Dennis Ritchie.
 In those days C has became a popular
language because It is reliable, simple, easy
to use.
6/24/2019 3SMS Institute of Technology, LUCKNOW
A function is a group of statements that together
perform a task. Every C program has at least one
function, which is main()
The basic function used in C are :-
 main()
 printf()
 scanf()
 strcat()
 memcpy()
6/24/2019 4SMS Institute of Technology, LUCKNOW
 The following block diagram show the steps
of learning C language :-
•Alphabets
•Numbers
•Special symbol
•Variables
•Keywords
•Constants
•Instructions
•Program
6/24/2019 5SMS Institute of Technology, LUCKNOW
 A character denotes any alphabet, digit or
special symbol used to represent
information.
• A, B, C,…………….Y, Z
• a, b,…………………y, zAlphabets
• 0,1,2,3,4,5,6,7,8,9Numbers
• , + - * / = ()
{} [] <>  ? ”
‘ : | _ & $ %
@ ~ # ^ ` ! ;
Special
symbol 6/24/2019 6SMS Institute of Technology, LUCKNOW
 Variables, constant and Keyword is some
necessary requirement for the successful
implimentation of C program.
 Let us now understand the meaning of each
of them.
 A variable is an entity that may change
where as, constant is an entity that does not
change. A keyword is a word that carries
special meaning.
6/24/2019 7SMS Institute of Technology, LUCKNOW
 A variable name is any combination of 1 to 31
alphabets, digits or underscores. You can
take variable name till the 31 character.
 The first character in the variable name must
be an alphabet or underscore.
 No commas or blanks and special symbol are
allowed within a variable name.
6/24/2019 8SMS Institute of Technology, LUCKNOW
 There are three types of instruction in C :-
1. Type Declaration Instruction
2. Arithmetic Instruction
3. Control Instruction
6/24/2019 9SMS Institute of Technology, LUCKNOW
 Type Declaration Instruction :
This instruction is used to declare
which type of variables used in C program.
 Arithmetic Instruction:
This instruction is used to perform
arithmetic operations on constant and
variables.
 Control Instruction :
This instruction is used to control the
sequence of execution of various
statements in a C program.
6/24/2019 10SMS Institute of Technology, LUCKNOW
#include<stdio.h>
int main(void)
{
printf(“hello, worldn”);
Printf(“Have a nice day.”);
return 0;
}
6/24/2019 11SMS Institute of Technology, LUCKNOW
Q/1.
Which of the following statement is a
declaration and which is a definition?
extern int i;
int j;
ANS.
First is declaration, second is definition.
6/24/2019 12SMS Institute of Technology, LUCKNOW
Q/2.
Input/output function prototypes and
macros are defined in which header file?
ANS.
stdio.h
Q/3.
What are stdin, stdout, stderr?
ANS.
Standard input, standard output, standard
error streams.
6/24/2019 13SMS Institute of Technology, LUCKNOW
Q/4.
What is the difference in the following
declarations?
const char *s;
char const *s;
ANS.
There is no difference.
Q/5.
Is it true that a function may have several
declarations, but only one definition?
ANS.
YES
6/24/2019 14SMS Institute of Technology, LUCKNOW
6/24/2019 15SMS Institute of Technology, LUCKNOW

More Related Content

What's hot (20)

Character set in c
Character set in cCharacter set in c
Character set in c
 
Programming in c
Programming in cProgramming in c
Programming in c
 
C/C++ History in few slides
C/C++ History in few slides C/C++ History in few slides
C/C++ History in few slides
 
Programming in C Presentation upto FILE
Programming in C Presentation upto FILEProgramming in C Presentation upto FILE
Programming in C Presentation upto FILE
 
C notes
C notesC notes
C notes
 
C and C++ functions
C and C++ functionsC and C++ functions
C and C++ functions
 
Introduction to C Language
Introduction to C LanguageIntroduction to C Language
Introduction to C Language
 
C Tokens
C TokensC Tokens
C Tokens
 
Introduction to C Programming
Introduction to C ProgrammingIntroduction to C Programming
Introduction to C Programming
 
Introduction to c programming language
Introduction to c programming languageIntroduction to c programming language
Introduction to c programming language
 
fundamentals of c
fundamentals of cfundamentals of c
fundamentals of c
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
Lecture 2 history_of_c
Lecture 2 history_of_cLecture 2 history_of_c
Lecture 2 history_of_c
 
History of C Programming Language
History of C Programming LanguageHistory of C Programming Language
History of C Programming Language
 
Data Type in C Programming
Data Type in C ProgrammingData Type in C Programming
Data Type in C Programming
 
Programming in c
Programming in cProgramming in c
Programming in c
 
C basics 4 std11(GujBoard)
C basics 4 std11(GujBoard)C basics 4 std11(GujBoard)
C basics 4 std11(GujBoard)
 
Introduction to c language | History of C language
Introduction to c language | History of C languageIntroduction to c language | History of C language
Introduction to c language | History of C language
 
C languaGE UNIT-1
C languaGE UNIT-1C languaGE UNIT-1
C languaGE UNIT-1
 
C introduction by thooyavan
C introduction by  thooyavanC introduction by  thooyavan
C introduction by thooyavan
 

Similar to C language

C Programming language - introduction
C Programming  language - introduction  C Programming  language - introduction
C Programming language - introduction GopikaS12
 
IP Lab Manual for Kerala University 3 Year UG Programme
IP Lab Manual for Kerala University 3 Year UG ProgrammeIP Lab Manual for Kerala University 3 Year UG Programme
IP Lab Manual for Kerala University 3 Year UG ProgrammeSAFAD ISMAIL
 
Vivek Joshi C programming ppt.pptx for c
Vivek Joshi C programming ppt.pptx for cVivek Joshi C programming ppt.pptx for c
Vivek Joshi C programming ppt.pptx for cvb6274037
 
C notes by m v b reddy(gitam)imp notes all units notes 5 unit order
C notes by m v b  reddy(gitam)imp  notes  all units notes  5 unit orderC notes by m v b  reddy(gitam)imp  notes  all units notes  5 unit order
C notes by m v b reddy(gitam)imp notes all units notes 5 unit orderMalikireddy Bramhananda Reddy
 
Notes of c programming 1st unit BCA I SEM
Notes of c programming  1st unit BCA I SEMNotes of c programming  1st unit BCA I SEM
Notes of c programming 1st unit BCA I SEMMansi Tyagi
 
Compiler design-lab-manual v-cse
Compiler design-lab-manual v-cseCompiler design-lab-manual v-cse
Compiler design-lab-manual v-cseravisharma159932
 
vtu data structures lab manual bcs304 pdf
vtu data structures lab manual bcs304 pdfvtu data structures lab manual bcs304 pdf
vtu data structures lab manual bcs304 pdfLPSChandana
 
TCS-NQT-Coding-Questions-@-Recruitmentindia.in_.pdf
TCS-NQT-Coding-Questions-@-Recruitmentindia.in_.pdfTCS-NQT-Coding-Questions-@-Recruitmentindia.in_.pdf
TCS-NQT-Coding-Questions-@-Recruitmentindia.in_.pdfAbhishekMGowda4
 
C programing for BCA Sem 1. JJ College
C programing for BCA Sem 1. JJ CollegeC programing for BCA Sem 1. JJ College
C programing for BCA Sem 1. JJ CollegeMUNNAKUMAR89
 
Computer programming all chapters
Computer programming all chaptersComputer programming all chapters
Computer programming all chaptersIbrahim Elewah
 
C programming presentation(final)
C programming presentation(final)C programming presentation(final)
C programming presentation(final)aaravSingh41
 

Similar to C language (20)

Unit 1.1 - Introduction to C.pptx
Unit 1.1 - Introduction to C.pptxUnit 1.1 - Introduction to C.pptx
Unit 1.1 - Introduction to C.pptx
 
C language
C language C language
C language
 
C Programming language - introduction
C Programming  language - introduction  C Programming  language - introduction
C Programming language - introduction
 
IP Lab Manual for Kerala University 3 Year UG Programme
IP Lab Manual for Kerala University 3 Year UG ProgrammeIP Lab Manual for Kerala University 3 Year UG Programme
IP Lab Manual for Kerala University 3 Year UG Programme
 
Vivek Joshi C programming ppt.pptx for c
Vivek Joshi C programming ppt.pptx for cVivek Joshi C programming ppt.pptx for c
Vivek Joshi C programming ppt.pptx for c
 
Lecture 1 progrmming with C
Lecture 1 progrmming with C Lecture 1 progrmming with C
Lecture 1 progrmming with C
 
C notes by m v b reddy(gitam)imp notes all units notes 5 unit order
C notes by m v b  reddy(gitam)imp  notes  all units notes  5 unit orderC notes by m v b  reddy(gitam)imp  notes  all units notes  5 unit order
C notes by m v b reddy(gitam)imp notes all units notes 5 unit order
 
COCOMO model
COCOMO modelCOCOMO model
COCOMO model
 
UNIT 1 NOTES.docx
UNIT 1 NOTES.docxUNIT 1 NOTES.docx
UNIT 1 NOTES.docx
 
C AND DATASTRUCTURES PREPARED BY M V B REDDY
C AND DATASTRUCTURES PREPARED BY M V B REDDYC AND DATASTRUCTURES PREPARED BY M V B REDDY
C AND DATASTRUCTURES PREPARED BY M V B REDDY
 
Notes of c programming 1st unit BCA I SEM
Notes of c programming  1st unit BCA I SEMNotes of c programming  1st unit BCA I SEM
Notes of c programming 1st unit BCA I SEM
 
Introduction to c language
Introduction to c language Introduction to c language
Introduction to c language
 
Compiler design-lab-manual v-cse
Compiler design-lab-manual v-cseCompiler design-lab-manual v-cse
Compiler design-lab-manual v-cse
 
vtu data structures lab manual bcs304 pdf
vtu data structures lab manual bcs304 pdfvtu data structures lab manual bcs304 pdf
vtu data structures lab manual bcs304 pdf
 
TCS-NQT-Coding-Questions-@-Recruitmentindia.in_.pdf
TCS-NQT-Coding-Questions-@-Recruitmentindia.in_.pdfTCS-NQT-Coding-Questions-@-Recruitmentindia.in_.pdf
TCS-NQT-Coding-Questions-@-Recruitmentindia.in_.pdf
 
C program
C programC program
C program
 
C programing for BCA Sem 1. JJ College
C programing for BCA Sem 1. JJ CollegeC programing for BCA Sem 1. JJ College
C programing for BCA Sem 1. JJ College
 
Computer programming all chapters
Computer programming all chaptersComputer programming all chapters
Computer programming all chapters
 
C programming presentation(final)
C programming presentation(final)C programming presentation(final)
C programming presentation(final)
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 

More from Rohit Singh

Rohit RajSingh_ApplicationForm.pdf
Rohit RajSingh_ApplicationForm.pdfRohit RajSingh_ApplicationForm.pdf
Rohit RajSingh_ApplicationForm.pdfRohit Singh
 
Data entry exclusive+
Data entry exclusive+ Data entry exclusive+
Data entry exclusive+ Rohit Singh
 
Custom pagination
Custom paginationCustom pagination
Custom paginationRohit Singh
 
Sql exception and class notfoundexception
Sql exception and class notfoundexceptionSql exception and class notfoundexception
Sql exception and class notfoundexceptionRohit Singh
 
Angular Part 3 (Basic knowledge)
Angular Part 3 (Basic knowledge)Angular Part 3 (Basic knowledge)
Angular Part 3 (Basic knowledge)Rohit Singh
 
Project ppt, Learn Project Java
Project ppt, Learn Project JavaProject ppt, Learn Project Java
Project ppt, Learn Project JavaRohit Singh
 
5g networking technology
5g networking technology5g networking technology
5g networking technologyRohit Singh
 
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)Rohit Singh
 
First program of C ( Complete Explanation )
First program of C ( Complete Explanation )First program of C ( Complete Explanation )
First program of C ( Complete Explanation )Rohit Singh
 
CCNA Course Training Presentation
CCNA Course Training PresentationCCNA Course Training Presentation
CCNA Course Training PresentationRohit Singh
 
Software testing basic
Software testing basicSoftware testing basic
Software testing basicRohit Singh
 
Core java interview questions
Core java interview questionsCore java interview questions
Core java interview questionsRohit Singh
 

More from Rohit Singh (15)

Rohit RajSingh_ApplicationForm.pdf
Rohit RajSingh_ApplicationForm.pdfRohit RajSingh_ApplicationForm.pdf
Rohit RajSingh_ApplicationForm.pdf
 
date2.docx
date2.docxdate2.docx
date2.docx
 
Data entry exclusive+
Data entry exclusive+ Data entry exclusive+
Data entry exclusive+
 
Assignment 1
Assignment 1Assignment 1
Assignment 1
 
Custom pagination
Custom paginationCustom pagination
Custom pagination
 
Sql exception and class notfoundexception
Sql exception and class notfoundexceptionSql exception and class notfoundexception
Sql exception and class notfoundexception
 
Angular Part 3 (Basic knowledge)
Angular Part 3 (Basic knowledge)Angular Part 3 (Basic knowledge)
Angular Part 3 (Basic knowledge)
 
Project ppt, Learn Project Java
Project ppt, Learn Project JavaProject ppt, Learn Project Java
Project ppt, Learn Project Java
 
5g networking technology
5g networking technology5g networking technology
5g networking technology
 
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)
 
First program of C ( Complete Explanation )
First program of C ( Complete Explanation )First program of C ( Complete Explanation )
First program of C ( Complete Explanation )
 
CCNA Course Training Presentation
CCNA Course Training PresentationCCNA Course Training Presentation
CCNA Course Training Presentation
 
Html Basic
Html Basic Html Basic
Html Basic
 
Software testing basic
Software testing basicSoftware testing basic
Software testing basic
 
Core java interview questions
Core java interview questionsCore java interview questions
Core java interview questions
 

Recently uploaded

1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdfAldoGarca30
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...Amil baba
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Call Girls Mumbai
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxSCMS School of Architecture
 
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptxrouholahahmadi9876
 
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...vershagrag
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiessarkmank1
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Servicemeghakumariji156
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...gragchanchal546
 
fitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .pptfitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .pptAfnanAhmad53
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdfKamal Acharya
 
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...jabtakhaidam7
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxpritamlangde
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 

Recently uploaded (20)

FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Signal Processing and Linear System Analysis
Signal Processing and Linear System AnalysisSignal Processing and Linear System Analysis
Signal Processing and Linear System Analysis
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
 
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
 
fitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .pptfitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .ppt
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 

C language

  • 1. PRESENTED BY : ROHIT RAJ SINGH 6/24/2019 1SMS Institute of Technology, LUCKNOW
  • 2.  Introduction of C ?  Function used in C ?  How to learn C language ?  Which Special Symbol used in C ?  Some necessary requirement for the implementation of C program ?  Instruction in C ?  How to make a Program in C ?  Interview FAQs ? 6/24/2019 2SMS Institute of Technology, LUCKNOW
  • 3.  C is a programming language developed at AT & T’s Bell Laboratories of USA in 1972.  This language is designed and written by Dennis Ritchie.  In those days C has became a popular language because It is reliable, simple, easy to use. 6/24/2019 3SMS Institute of Technology, LUCKNOW
  • 4. A function is a group of statements that together perform a task. Every C program has at least one function, which is main() The basic function used in C are :-  main()  printf()  scanf()  strcat()  memcpy() 6/24/2019 4SMS Institute of Technology, LUCKNOW
  • 5.  The following block diagram show the steps of learning C language :- •Alphabets •Numbers •Special symbol •Variables •Keywords •Constants •Instructions •Program 6/24/2019 5SMS Institute of Technology, LUCKNOW
  • 6.  A character denotes any alphabet, digit or special symbol used to represent information. • A, B, C,…………….Y, Z • a, b,…………………y, zAlphabets • 0,1,2,3,4,5,6,7,8,9Numbers • , + - * / = () {} [] <> ? ” ‘ : | _ & $ % @ ~ # ^ ` ! ; Special symbol 6/24/2019 6SMS Institute of Technology, LUCKNOW
  • 7.  Variables, constant and Keyword is some necessary requirement for the successful implimentation of C program.  Let us now understand the meaning of each of them.  A variable is an entity that may change where as, constant is an entity that does not change. A keyword is a word that carries special meaning. 6/24/2019 7SMS Institute of Technology, LUCKNOW
  • 8.  A variable name is any combination of 1 to 31 alphabets, digits or underscores. You can take variable name till the 31 character.  The first character in the variable name must be an alphabet or underscore.  No commas or blanks and special symbol are allowed within a variable name. 6/24/2019 8SMS Institute of Technology, LUCKNOW
  • 9.  There are three types of instruction in C :- 1. Type Declaration Instruction 2. Arithmetic Instruction 3. Control Instruction 6/24/2019 9SMS Institute of Technology, LUCKNOW
  • 10.  Type Declaration Instruction : This instruction is used to declare which type of variables used in C program.  Arithmetic Instruction: This instruction is used to perform arithmetic operations on constant and variables.  Control Instruction : This instruction is used to control the sequence of execution of various statements in a C program. 6/24/2019 10SMS Institute of Technology, LUCKNOW
  • 11. #include<stdio.h> int main(void) { printf(“hello, worldn”); Printf(“Have a nice day.”); return 0; } 6/24/2019 11SMS Institute of Technology, LUCKNOW
  • 12. Q/1. Which of the following statement is a declaration and which is a definition? extern int i; int j; ANS. First is declaration, second is definition. 6/24/2019 12SMS Institute of Technology, LUCKNOW
  • 13. Q/2. Input/output function prototypes and macros are defined in which header file? ANS. stdio.h Q/3. What are stdin, stdout, stderr? ANS. Standard input, standard output, standard error streams. 6/24/2019 13SMS Institute of Technology, LUCKNOW
  • 14. Q/4. What is the difference in the following declarations? const char *s; char const *s; ANS. There is no difference. Q/5. Is it true that a function may have several declarations, but only one definition? ANS. YES 6/24/2019 14SMS Institute of Technology, LUCKNOW
  • 15. 6/24/2019 15SMS Institute of Technology, LUCKNOW