SlideShare a Scribd company logo
1 of 24
BASICS OF C
Session 1
OBJECTIVES
โ€ข Differentiate between command, Program, and Software
โ€ข Explain the beginning of C
โ€ข Explain when and why C is used
โ€ข Discuss the c program structure
โ€ข Discuss Algorithm
โ€ข Draw Flowcharts
โ€ข List the symbol used in flowcharts
Presented by: Muhammad Ehtisham Siddiqui (BSCS)
2
COMMAND, PROGRAM AND SOFTWARE
โ€ข In computing, a command is a directive to a computer program acting as an
interpreter of some kind, in order to perform a specific task.
โ€ข A program is a set of instructions(commands) written in computer language to
provide solution for a particular problem using computing devices is commonly
referred as Program.
โ€ข software is a collection of individual programs well packaged to run on a computer.
Presented by: Muhammad Ehtisham Siddiqui (BSCS)
3
COMMAND, PROGRAM AND SOFTWARE
Presented by: Muhammad Ehtisham Siddiqui (BSCS)
4
Software
Program Program
Command Command Command Command
BEGINNING OF C
โ€ข C programming language was invented by
Dennis Ritchie at the Bell Laboratories in 1972.
Presented by: Muhammad Ehtisham Siddiqui (BSCS)
5
APPLICATION AREAS OF C PROGRAMMING
โ€ข C was initially used for Systems programming
โ€ข A System programs forms a portion of the operating system of the computer or it
support utilities
โ€ข Operating systems, Interpreters, Editors, Assembly programs are usually called
system programs
โ€ข The UNIX operating system was developed using C
โ€ข There are C compilers are available for almost all types of PCโ€™s
Presented by: Muhammad Ehtisham Siddiqui (BSCS)
6
MIDDLE LEVEL LANGUAGE
C is called middle-level language because it is actually bind the gap between a
machine level language and high-level languages. User can use c language to do
System Programming (for writing operating system) as well as Application
Programming (for generate menu driven customer billing system ).
Presented by: Muhammad Ehtisham Siddiqui (BSCS)
7
STRUCTURED LANGUAGE
โ€ข C is called a structured programming language because to solve a large problem
โ€ข C allows compartmentalization of code and data
โ€ข C programming language divides the problem into smaller modules called
functions or procedures each of which handles a particular responsibility
โ€ข The program which solves the entire problem is a collection of such functions
For Ex: We have to develop a calculator . So we must have to divide programs into
functions of Addition, Subtraction, Multiplication, Division etc.
Presented by: Muhammad Ehtisham Siddiqui (BSCS)
8
ABOUT C PROGRAMMING (keywords)
โ€ข There are 32 Keywords in C
โ€ข Keywords are those words whose meaning is already defined by Compiler
โ€ข Keywords cannot be used as a variable or function name
Presented by: Muhammad Ehtisham Siddiqui (BSCS)
9
C PROGRAMMING STRUCTURE [ main() ]
๏ฑ C programs are divided into units called functions
๏ฑ Identify the start of program
๏ฑ Every C program has a main ()
๏ฑ Main() is a keyword , we must not used it for any other variable
๏ฑ 4 common ways of main declaration
Presented by: Muhammad Ehtisham Siddiqui (BSCS)
10
C PROGRAMMING STRUCTURE[Delimiters]
โ€ข A delimiter is one or more characters that separates text strings
โ€ข Common delimiters are commas (,), semicolon (;), quotes ( ", ' ), braces ({}), pipes (|),
or slashes ( /  )
โ€ข C programming Delimiters are as follows
Presented by: Muhammad Ehtisham Siddiqui (BSCS)
11
Delimiter Symbol Use
Colon : Useful for label
Semicolon ; Terminates statements
Parenthesis () Used in expression and function
Square brackets [] Used for array declaration
Curly braces {} Scope of statement
Hash # Preprocessor directive
Comma , variable separator
#include<stdio.h>
void main()
{
int a,b,c[10];
printf("hi");
}
C PROGRAMMING STRUCTURE[Comment]
โ€ข In computer programming, a comment is a programmer-readable explanation or
annotation in the source code of a computer program.
โ€ข They are added with the purpose of making the source code easier for humans to
understand, and are generally ignored by compilers and interpreters.
โ€ข In C Comment begin with /* and are terminated with */
Presented by: Muhammad Ehtisham Siddiqui (BSCS)
12
THE C LIBRARY
โ€ข All C compilers come with a standard library of functions
โ€ข A function written by a programmer can be placed in the library and used
when required
โ€ข Some compilers allow functions to be added in the standard library
โ€ข Some compilers require a separate library to be created
โ€ข C Standard library functions or simply C Library functions are
inbuilt functions in C programming.
Presented by: Muhammad Ehtisham Siddiqui (BSCS)
13
COMPILING AND RUNNING A PROGRAM
Presented by: Muhammad Ehtisham Siddiqui (BSCS)
14
PROGRAMMING APPROACH FOR SOLVING A PROBLEM
What is algorithm ?
Algorithm is a set of instruction performed by programmer to solve a problems
Presented by: Muhammad Ehtisham Siddiqui (BSCS)
15
PROGRAMMING APPROACH FOR SOLVING A PROBLEM
Presented by: Muhammad Ehtisham Siddiqui (BSCS)
16
3. Process the information
1. Understand the problem
clearly
4. Arrive the solution
2. Understand the problem
clearly
To solve problems
PROGRAMMING APPROACH FOR SOLVING A PROBLEM
Presented by: Muhammad Ehtisham Siddiqui (BSCS)
17
โ€ข Pseudocode is a simple way of writing programming code in English.
โ€ข Pseudocode is not actual programming language.
โ€ข For Example:
1. Start Program
2. Enter two numbers, A, B
3. Add the numbers together
4. Print Sum
5. End Program
Each pseudocode starts with a BEGIN/START To show some value ,
the word DISPLAY/PRINT is used The pseudocode finishes with an END
PROGRAMMING APPROACH FOR SOLVING A PROBLEM
Presented by: Muhammad Ehtisham Siddiqui (BSCS)
18
โ€ข What is Flowchart ?
Flowchart is a diagrammatic representation of an algorithm. Flowchart are very helpful
in writing program and explaining program to others.
PROGRAMMING APPROACH FOR SOLVING A PROBLEM
Presented by: Muhammad Ehtisham Siddiqui (BSCS)
19
โ€ข Flowchart Symbol
Different symbols are used for different states in flowchart, For example: Input /
Output and decision making has different symbols. The table below describes all the
symbols that are used in making flowchart
PROGRAMMING APPROACH FOR SOLVING A PROBLEM
Presented by: Muhammad Ehtisham Siddiqui (BSCS)
20
โ€ข Flowchart to add two numbers?
PROGRAMMING APPROACH FOR SOLVING A PROBLEM
Presented by: Muhammad Ehtisham Siddiqui (BSCS)
21
โ€ข Flowchart with If Construct
PROGRAMMING APPROACH FOR SOLVING A PROBLEM
Presented by: Muhammad Ehtisham Siddiqui (BSCS)
22
โ€ข Flowchart with If Else
PROGRAMMING APPROACH FOR SOLVING A PROBLEM
Presented by: Muhammad Ehtisham Siddiqui (BSCS)
23
โ€ข Flowchart with For Loop
Presented by: Muhammad Ehtisham Siddiqui (BSCS)
24

More Related Content

What's hot

Computer operations 7
Computer operations 7Computer operations 7
Computer operations 7
Naheelah Irving
ย 
Pascal Programming Session 1
Pascal Programming Session 1Pascal Programming Session 1
Pascal Programming Session 1
Ashesh R
ย 
Programming Language
Programming  LanguageProgramming  Language
Programming Language
Adeel Hamid
ย 
Intro To Programming Concepts
Intro To Programming ConceptsIntro To Programming Concepts
Intro To Programming Concepts
Jussi Pohjolainen
ย 
Programming language design and implemenation
Programming language design and implemenationProgramming language design and implemenation
Programming language design and implemenation
Ashwini Awatare
ย 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
Varun Garg
ย 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
salmankhan570
ย 

What's hot (20)

Types of Programming Languages
Types of Programming LanguagesTypes of Programming Languages
Types of Programming Languages
ย 
Computer operations 7
Computer operations 7Computer operations 7
Computer operations 7
ย 
Pascal Programming Session 1
Pascal Programming Session 1Pascal Programming Session 1
Pascal Programming Session 1
ย 
Programming : QBASIC
Programming : QBASICProgramming : QBASIC
Programming : QBASIC
ย 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
ย 
Programming Language
Programming  LanguageProgramming  Language
Programming Language
ย 
Intro To Programming Concepts
Intro To Programming ConceptsIntro To Programming Concepts
Intro To Programming Concepts
ย 
Programming
ProgrammingProgramming
Programming
ย 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
ย 
Programming language design and implemenation
Programming language design and implemenationProgramming language design and implemenation
Programming language design and implemenation
ย 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
ย 
Programming Fundamentals lecture 1
Programming Fundamentals lecture 1Programming Fundamentals lecture 1
Programming Fundamentals lecture 1
ย 
Introduction to Procedural Programming in C++
Introduction to Procedural Programming in C++Introduction to Procedural Programming in C++
Introduction to Procedural Programming in C++
ย 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
ย 
Lecture 1 introduction to vb.net
Lecture 1   introduction to vb.netLecture 1   introduction to vb.net
Lecture 1 introduction to vb.net
ย 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
Introduction to Computer Programming
ย 
Fundamental Programming Lect 1
Fundamental Programming Lect 1Fundamental Programming Lect 1
Fundamental Programming Lect 1
ย 
Fundamentals of c language
Fundamentals of c languageFundamentals of c language
Fundamentals of c language
ย 
Basic Computer Programming
Basic Computer ProgrammingBasic Computer Programming
Basic Computer Programming
ย 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE Introduction
ย 

Similar to C programming Tutorial Session 1

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
Malikireddy Bramhananda Reddy
ย 
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
Malikireddy Bramhananda Reddy
ย 
Computer programming all chapters
Computer programming all chaptersComputer programming all chapters
Computer programming all chapters
Ibrahim Elewah
ย 
C Unit 1 notes PREPARED BY MVB REDDY
C Unit 1 notes PREPARED BY MVB REDDYC Unit 1 notes PREPARED BY MVB REDDY
C Unit 1 notes PREPARED BY MVB REDDY
Rajeshkumar Reddy
ย 

Similar to C programming Tutorial Session 1 (20)

Introduction to c language
Introduction to c language Introduction to c language
Introduction to c language
ย 
Introduction to C Programming
Introduction to C ProgrammingIntroduction to C Programming
Introduction to C Programming
ย 
Fundamentals of programming with C++
Fundamentals of programming with C++Fundamentals of programming with C++
Fundamentals of programming 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
ย 
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
ย 
Computer programming all chapters
Computer programming all chaptersComputer programming all chapters
Computer programming all chapters
ย 
CS3251-_PIC
CS3251-_PICCS3251-_PIC
CS3251-_PIC
ย 
Introduction to programming c
Introduction to programming cIntroduction to programming c
Introduction to programming c
ย 
C session 1.pptx
C session 1.pptxC session 1.pptx
C session 1.pptx
ย 
C Unit 1 notes PREPARED BY MVB REDDY
C Unit 1 notes PREPARED BY MVB REDDYC Unit 1 notes PREPARED BY MVB REDDY
C Unit 1 notes PREPARED BY MVB REDDY
ย 
Introduction to Computer
Introduction to ComputerIntroduction to Computer
Introduction to Computer
ย 
Bsc cs i pic u-1 introduction to c language
Bsc cs i pic u-1 introduction to c languageBsc cs i pic u-1 introduction to c language
Bsc cs i pic u-1 introduction to c language
ย 
Comso c++
Comso c++Comso c++
Comso c++
ย 
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
ย 
Programming in c
Programming in cProgramming in c
Programming in c
ย 
Programming in C
Programming in CProgramming in C
Programming in C
ย 
Diploma ii cfpc u-1 introduction to c language
Diploma ii  cfpc u-1 introduction to c languageDiploma ii  cfpc u-1 introduction to c language
Diploma ii cfpc u-1 introduction to c language
ย 
Btech i pic u-1 introduction to c language
Btech i pic u-1 introduction to c languageBtech i pic u-1 introduction to c language
Btech i pic u-1 introduction to c language
ย 
Lesson 1
Lesson 1Lesson 1
Lesson 1
ย 
C programming presentation for university
C programming presentation for universityC programming presentation for university
C programming presentation for university
ย 

More from Muhammad Ehtisham Siddiqui

More from Muhammad Ehtisham Siddiqui (20)

C programming Tutorial Session 4
C programming Tutorial Session 4C programming Tutorial Session 4
C programming Tutorial Session 4
ย 
C programming Tutorial Session 4
C programming Tutorial Session 4C programming Tutorial Session 4
C programming Tutorial Session 4
ย 
C programming Tutorial Session 3
C programming Tutorial Session 3C programming Tutorial Session 3
C programming Tutorial Session 3
ย 
C programming Tutorial Session 2
C programming Tutorial Session 2C programming Tutorial Session 2
C programming Tutorial Session 2
ย 
HTML5 Web storage
HTML5 Web storageHTML5 Web storage
HTML5 Web storage
ย 
J Query (Complete Course) by Muhammad Ehtisham Siddiqui
J Query (Complete Course) by Muhammad Ehtisham SiddiquiJ Query (Complete Course) by Muhammad Ehtisham Siddiqui
J Query (Complete Course) by Muhammad Ehtisham Siddiqui
ย 
JavaScript Session 2
JavaScript Session 2JavaScript Session 2
JavaScript Session 2
ย 
JavaScript Session 3
JavaScript Session 3JavaScript Session 3
JavaScript Session 3
ย 
Javascript session 1
Javascript session 1Javascript session 1
Javascript session 1
ย 
Html audio video
Html audio videoHtml audio video
Html audio video
ย 
Html 5 geolocation api
Html 5 geolocation api Html 5 geolocation api
Html 5 geolocation api
ย 
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham Siddiqui
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham SiddiquiBuiding Next Generation Websites Session 8 by Muhammad Ehtisham Siddiqui
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham Siddiqui
ย 
Building Next Generation Websites Session 7 by Muhammad Ehtisham Siddiqui
Building Next Generation  Websites Session 7 by Muhammad Ehtisham SiddiquiBuilding Next Generation  Websites Session 7 by Muhammad Ehtisham Siddiqui
Building Next Generation Websites Session 7 by Muhammad Ehtisham Siddiqui
ย 
Building Next Generation Websites Session 6 by Muhammad Ehtisham Siddiqui
Building Next Generation Websites Session 6 by Muhammad Ehtisham SiddiquiBuilding Next Generation Websites Session 6 by Muhammad Ehtisham Siddiqui
Building Next Generation Websites Session 6 by Muhammad Ehtisham Siddiqui
ย 
Building Next Generation Websites by Muhammad Ehtisham Siddiqui
Building Next Generation Websites by Muhammad Ehtisham SiddiquiBuilding Next Generation Websites by Muhammad Ehtisham Siddiqui
Building Next Generation Websites by Muhammad Ehtisham Siddiqui
ย 
Building Next Generation Websites Session6
Building Next Generation Websites Session6Building Next Generation Websites Session6
Building Next Generation Websites Session6
ย 
Building Next Generation Websites Session5
Building Next Generation Websites Session5Building Next Generation Websites Session5
Building Next Generation Websites Session5
ย 
Building Next Generation Websites Session4
Building Next Generation Websites Session4Building Next Generation Websites Session4
Building Next Generation Websites Session4
ย 
Session4
Session4Session4
Session4
ย 
Office session14
Office session14Office session14
Office session14
ย 

Recently uploaded

CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Badshah Nagar Lucknow best Female service
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Badshah Nagar Lucknow best Female serviceCALL ON โžฅ8923113531 ๐Ÿ”Call Girls Badshah Nagar Lucknow best Female service
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Badshah Nagar Lucknow best Female service
anilsa9823
ย 
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Kakori Lucknow best sexual service Online โ˜‚๏ธ
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Kakori Lucknow best sexual service Online  โ˜‚๏ธCALL ON โžฅ8923113531 ๐Ÿ”Call Girls Kakori Lucknow best sexual service Online  โ˜‚๏ธ
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Kakori Lucknow best sexual service Online โ˜‚๏ธ
anilsa9823
ย 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
ย 
CHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 

Recently uploaded (20)

The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
ย 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
ย 
call girls in Vaishali (Ghaziabad) ๐Ÿ” >เผ’8448380779 ๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธ
call girls in Vaishali (Ghaziabad) ๐Ÿ” >เผ’8448380779 ๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธcall girls in Vaishali (Ghaziabad) ๐Ÿ” >เผ’8448380779 ๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธ
call girls in Vaishali (Ghaziabad) ๐Ÿ” >เผ’8448380779 ๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธ
ย 
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Badshah Nagar Lucknow best Female service
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Badshah Nagar Lucknow best Female serviceCALL ON โžฅ8923113531 ๐Ÿ”Call Girls Badshah Nagar Lucknow best Female service
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Badshah Nagar Lucknow best Female service
ย 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
ย 
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Kakori Lucknow best sexual service Online โ˜‚๏ธ
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Kakori Lucknow best sexual service Online  โ˜‚๏ธCALL ON โžฅ8923113531 ๐Ÿ”Call Girls Kakori Lucknow best sexual service Online  โ˜‚๏ธ
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Kakori Lucknow best sexual service Online โ˜‚๏ธ
ย 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
ย 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
ย 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
ย 
CHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
ย 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
ย 
Vip Call Girls Noida โžก๏ธ Delhi โžก๏ธ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida โžก๏ธ Delhi โžก๏ธ 9999965857 No Advance 24HRS LiveVip Call Girls Noida โžก๏ธ Delhi โžก๏ธ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida โžก๏ธ Delhi โžก๏ธ 9999965857 No Advance 24HRS Live
ย 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
ย 
Shapes for Sharing between Graph Data Spacesย - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spacesย - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spacesย - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spacesย - and Epistemic Querying of RDF-...
ย 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
ย 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
ย 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
ย 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
ย 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
ย 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
ย 

C programming Tutorial Session 1

  • 2. OBJECTIVES โ€ข Differentiate between command, Program, and Software โ€ข Explain the beginning of C โ€ข Explain when and why C is used โ€ข Discuss the c program structure โ€ข Discuss Algorithm โ€ข Draw Flowcharts โ€ข List the symbol used in flowcharts Presented by: Muhammad Ehtisham Siddiqui (BSCS) 2
  • 3. COMMAND, PROGRAM AND SOFTWARE โ€ข In computing, a command is a directive to a computer program acting as an interpreter of some kind, in order to perform a specific task. โ€ข A program is a set of instructions(commands) written in computer language to provide solution for a particular problem using computing devices is commonly referred as Program. โ€ข software is a collection of individual programs well packaged to run on a computer. Presented by: Muhammad Ehtisham Siddiqui (BSCS) 3
  • 4. COMMAND, PROGRAM AND SOFTWARE Presented by: Muhammad Ehtisham Siddiqui (BSCS) 4 Software Program Program Command Command Command Command
  • 5. BEGINNING OF C โ€ข C programming language was invented by Dennis Ritchie at the Bell Laboratories in 1972. Presented by: Muhammad Ehtisham Siddiqui (BSCS) 5
  • 6. APPLICATION AREAS OF C PROGRAMMING โ€ข C was initially used for Systems programming โ€ข A System programs forms a portion of the operating system of the computer or it support utilities โ€ข Operating systems, Interpreters, Editors, Assembly programs are usually called system programs โ€ข The UNIX operating system was developed using C โ€ข There are C compilers are available for almost all types of PCโ€™s Presented by: Muhammad Ehtisham Siddiqui (BSCS) 6
  • 7. MIDDLE LEVEL LANGUAGE C is called middle-level language because it is actually bind the gap between a machine level language and high-level languages. User can use c language to do System Programming (for writing operating system) as well as Application Programming (for generate menu driven customer billing system ). Presented by: Muhammad Ehtisham Siddiqui (BSCS) 7
  • 8. STRUCTURED LANGUAGE โ€ข C is called a structured programming language because to solve a large problem โ€ข C allows compartmentalization of code and data โ€ข C programming language divides the problem into smaller modules called functions or procedures each of which handles a particular responsibility โ€ข The program which solves the entire problem is a collection of such functions For Ex: We have to develop a calculator . So we must have to divide programs into functions of Addition, Subtraction, Multiplication, Division etc. Presented by: Muhammad Ehtisham Siddiqui (BSCS) 8
  • 9. ABOUT C PROGRAMMING (keywords) โ€ข There are 32 Keywords in C โ€ข Keywords are those words whose meaning is already defined by Compiler โ€ข Keywords cannot be used as a variable or function name Presented by: Muhammad Ehtisham Siddiqui (BSCS) 9
  • 10. C PROGRAMMING STRUCTURE [ main() ] ๏ฑ C programs are divided into units called functions ๏ฑ Identify the start of program ๏ฑ Every C program has a main () ๏ฑ Main() is a keyword , we must not used it for any other variable ๏ฑ 4 common ways of main declaration Presented by: Muhammad Ehtisham Siddiqui (BSCS) 10
  • 11. C PROGRAMMING STRUCTURE[Delimiters] โ€ข A delimiter is one or more characters that separates text strings โ€ข Common delimiters are commas (,), semicolon (;), quotes ( ", ' ), braces ({}), pipes (|), or slashes ( / ) โ€ข C programming Delimiters are as follows Presented by: Muhammad Ehtisham Siddiqui (BSCS) 11 Delimiter Symbol Use Colon : Useful for label Semicolon ; Terminates statements Parenthesis () Used in expression and function Square brackets [] Used for array declaration Curly braces {} Scope of statement Hash # Preprocessor directive Comma , variable separator #include<stdio.h> void main() { int a,b,c[10]; printf("hi"); }
  • 12. C PROGRAMMING STRUCTURE[Comment] โ€ข In computer programming, a comment is a programmer-readable explanation or annotation in the source code of a computer program. โ€ข They are added with the purpose of making the source code easier for humans to understand, and are generally ignored by compilers and interpreters. โ€ข In C Comment begin with /* and are terminated with */ Presented by: Muhammad Ehtisham Siddiqui (BSCS) 12
  • 13. THE C LIBRARY โ€ข All C compilers come with a standard library of functions โ€ข A function written by a programmer can be placed in the library and used when required โ€ข Some compilers allow functions to be added in the standard library โ€ข Some compilers require a separate library to be created โ€ข C Standard library functions or simply C Library functions are inbuilt functions in C programming. Presented by: Muhammad Ehtisham Siddiqui (BSCS) 13
  • 14. COMPILING AND RUNNING A PROGRAM Presented by: Muhammad Ehtisham Siddiqui (BSCS) 14
  • 15. PROGRAMMING APPROACH FOR SOLVING A PROBLEM What is algorithm ? Algorithm is a set of instruction performed by programmer to solve a problems Presented by: Muhammad Ehtisham Siddiqui (BSCS) 15
  • 16. PROGRAMMING APPROACH FOR SOLVING A PROBLEM Presented by: Muhammad Ehtisham Siddiqui (BSCS) 16 3. Process the information 1. Understand the problem clearly 4. Arrive the solution 2. Understand the problem clearly To solve problems
  • 17. PROGRAMMING APPROACH FOR SOLVING A PROBLEM Presented by: Muhammad Ehtisham Siddiqui (BSCS) 17 โ€ข Pseudocode is a simple way of writing programming code in English. โ€ข Pseudocode is not actual programming language. โ€ข For Example: 1. Start Program 2. Enter two numbers, A, B 3. Add the numbers together 4. Print Sum 5. End Program Each pseudocode starts with a BEGIN/START To show some value , the word DISPLAY/PRINT is used The pseudocode finishes with an END
  • 18. PROGRAMMING APPROACH FOR SOLVING A PROBLEM Presented by: Muhammad Ehtisham Siddiqui (BSCS) 18 โ€ข What is Flowchart ? Flowchart is a diagrammatic representation of an algorithm. Flowchart are very helpful in writing program and explaining program to others.
  • 19. PROGRAMMING APPROACH FOR SOLVING A PROBLEM Presented by: Muhammad Ehtisham Siddiqui (BSCS) 19 โ€ข Flowchart Symbol Different symbols are used for different states in flowchart, For example: Input / Output and decision making has different symbols. The table below describes all the symbols that are used in making flowchart
  • 20. PROGRAMMING APPROACH FOR SOLVING A PROBLEM Presented by: Muhammad Ehtisham Siddiqui (BSCS) 20 โ€ข Flowchart to add two numbers?
  • 21. PROGRAMMING APPROACH FOR SOLVING A PROBLEM Presented by: Muhammad Ehtisham Siddiqui (BSCS) 21 โ€ข Flowchart with If Construct
  • 22. PROGRAMMING APPROACH FOR SOLVING A PROBLEM Presented by: Muhammad Ehtisham Siddiqui (BSCS) 22 โ€ข Flowchart with If Else
  • 23. PROGRAMMING APPROACH FOR SOLVING A PROBLEM Presented by: Muhammad Ehtisham Siddiqui (BSCS) 23 โ€ข Flowchart with For Loop
  • 24. Presented by: Muhammad Ehtisham Siddiqui (BSCS) 24