SlideShare a Scribd company logo
1 of 30
Lecture 1
Introduction to Programming
Free tutorials Visit to code @ www.codemodes.com Free Projects
Program
• Program
A program is a logical pattern of
instructions to solve a problem.
• Programming
Programming refers to the creation of a list
of stored instructions that tell the computer
what to do.
Free tutorials Visit to code @ www.codemodes.com Free Projects
What is a programming
language?
• Media of communication between Human and
Machine( Computer).
Free tutorials Visit to code @ www.codemodes.com Free Projects
Why Programming Languages ?
• Suppose for a moment that you were given the
following list of instructions to perform :
1. 0001 0011 0011 1011
2. 1101 0111 0001 1001
3. 1111 0001 1101 1111
4. 0000 1100 0101 1101
5. 0001 0011 0011 1011
Free tutorials Visit to code @
www.codemodes.com
Free Projects
Programming Languages
• Programming languages provide us a plate
form to describe the job of computer through
instructions.
• All the programming languages are divided
into two categories
1. High level languages or Problem oriented
languages
2. Low level languages or Machine oriented
languages
Free tutorials Visit to code @ www.codemodes.com Free Projects
High-level languages
• These languages are designed to give a
better programming efficiency, i.e. faster
program development.
• These languages are human readable.
• It is easy to work in this type of a language.
• Easy to write a program in high level
language.
• e.g. Cobol, Fortran, Java, Visual Basic.
• Slower than low level language
Free tutorials Visit to code @ www.codemodes.com Free Projects
Fortran and Cobol
• FORTRAN stands for formula translation
• Used to design applications to solve scientific
problems
– COBOL: stands for Common Business
Oriented Language
• It was used to design applications for business and
banks to generate invoices, keep records of
inventory and generate reports etc.
Free tutorials Visit to code @ www.codemodes.com Free Projects
Low-level languages
• These languages are designed to give a better
machine efficiency, i.e. faster execution.
• These type of languages are also called
machine language
• These languages are based on machine code.
• Also called the language of microprocessor.
• Hard to learn and write a program in low level
language.
• e.g. Assembly language, machine language,
Sys 3800, MAC.
Free tutorials Visit to code @ www.codemodes.com Free Projects
Machine Language
• A language that is directly understandable by
machines
• Machine language consists of 1 and 0
• It does not need any kind of translation or
compiler
• Very tough to learn and code
Free tutorials Visit to code @ www.codemodes.com Free Projects
Assembly Language
• An assembly language is a low-level programming
language for microprocessors and other programmable
devices.
• An assembly language implements a symbolic
representation of the machine code needed to program
a given CPU architecture.
• Using assembly language you can access all features
of a computer or you can directly interact with
hardware.
• Assembler: A software that is used to translate
assembly language to machine language.
Free tutorials Visit to code @ www.codemodes.com Free Projects
C Language
• C is a high level programming languages.
• C is widely used for professional programming.
• C combines the virtues of high-level
programming languages with the efficiency of
assembly languages. Using C programmers can
directly manipulate bits of data inside the
processing unit. As a result C programs run
significantly faster than programs written in other
languages. That is why it is often called a middle
level language
Free tutorials Visit to code @ www.codemodes.com Free Projects
Free tutorials Visit to code @ www.codemodes.com Free Projects
A language is a language
• Programming languages are languages.
• When it comes to the mechanics of the task,
learning to speak and use a programming
language is in many ways like learning to speak
a human language.
• In both kinds of language you have to learn new
vocabulary, syntax and semantics (new words,
sentence structures and meanings).
• And both kinds of language require considerable
practice to make perfect.
Free tutorials Visit to code @ www.codemodes.com Free Projects
A brief history of C
• C came into being in the years 1969-1973, in
parallel with the early development of the Unix
operating system by Dennis Ritchie at Bell
Laboratory.
The C family tree
• C evolved into a language, it did not
simply appear.
• C has many descendants
– Concurrent C, Objective C, C++, C#
– C++ is an object-oriented derivative of C
with “classes“, inheritance, polymorphism,
encapsulation, data hiding, reusability, etc.
Free tutorials Visit to code @ www.codemodes.com Free Projects
Why use C?
• C is often called a “middle-level” language
– High-level languages provide everything the
programmer might want to do already built into
the language.
e.g. Fortran
– A low level language provides nothing other
than access to the machines basic instruction
set.
e.g. assembler
– A middle level language, such as C, probably
doesn't supply all the constructs found in high-
languages – but it provides you with all the
building blocks that you will need
Free tutorials Visit to code @ www.codemodes.com Free Projects
What is an Instruction ?
The command, task or job that CPU
understands and is capable to execute
Free tutorials Visit to code @ www.codemodes.com Free Projects
What is a Program
A set of step by step instructions that
directs a computer to perform specific
tasks and produce certain results.
Free tutorials Visit to code @ www.codemodes.com Free Projects
Programming
Programming refers to the creation of a list
of stored instructions that tell the
computer what to do.
2+2
2*3
5+5
Free tutorials Visit to code @ www.codemodes.com Free Projects
An overview of C programming
• A C program is composed of one or more
“source files”, each of which contains
some part of an entire C program
– Common declarations are often collected into
“header files”
Free tutorials Visit to code @ www.codemodes.com Free Projects
The Programming Process
• Programs must be translated into the
target computers machine language.
– compiler: program that does the translation
– source file: the input into the compiler
– If the program is syntactically correct, the
compiler saves the machine language
instructions in an object file.
– The linker combines an object file with
preexisting libraries of functions and produces
an executable file
Free tutorials Visit to code @ www.codemodes.com Free Projects
The Programming Process
• The programming process consists of a
cycle.
edit compile run
Free tutorials Visit to code @ www.codemodes.com Free Projects
A basic C program
#include <stdio.h>
void main(void)
{
printf(“Code Modes!n”);
}
Free tutorials Visit to code @ www.codemodes.com Free Projects
What’s happening here?
Void main(void)
{
printf(“Code Modes! n”);
}
this preprocessor
directive includes
the standard I/O
library
#include <stdio.h>
Free tutorials Visit to code @ www.codemodes.com Free Projects
What’s happening here?
#include <stdio.h>
{
printf(“Code Modes!n”);
}
main signifies
the start of the
program
Void main(void)
All C programs are divided
in to units called function.
The main( ) function is the
one to which control is
passed when the program
is executed.Free tutorials Visit to code @ www.codemodes.com Free Projects
What’s happening here?
#include <stdio.h>
Void main(void)
printf(“Code Modes!n”);
}
an opening curly
brace defines the
beginning of the
function{
Free tutorials Visit to code @ www.codemodes.com Free Projects
#include <stdio.h>
Void main(void)
{
}
What’s happening here?
printf(“Code Modes!n”);
the printf statement
prints the text on
screen
Free tutorials Visit to code @ www.codemodes.com Free Projects
What’s happening here?
#include <stdio.h>
Void main(void)
{
printf(“Code Modes!n”);
a closing curly
brace defines the
end of the function
}
Free tutorials Visit to code @ www.codemodes.com Free Projects
What is Function?
A block of code used to perform a specific
task.
#include <stdio.h>
Void main(void)
{
printf(“Code Modes!n”);
}
Free tutorials Visit to code @ www.codemodes.com Free Projects
The Basic Structure of C Programs
<stdio.h> Standard Input Out put header file.
include Key word called pre processor directive
#, <, >, {, } Special characters used for Syntax or
format.
void main(void) main function
printf a function which display output on
screen
“ Message Start
“ Message close
( ) Parenthesis.
; Statement terminator
IDE Integrated Development Environment
Free tutorials Visit to code @ www.codemodes.com Free Projects
The End
Free tutorials Visit to code @ www.codemodes.com Free Projects

More Related Content

What's hot

Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi Professor Lili Saghafi
 
13 A Programing Languages (IT) Lecture Slide
13 A Programing Languages (IT) Lecture Slide13 A Programing Languages (IT) Lecture Slide
13 A Programing Languages (IT) Lecture SlideMuhammad Talha Zaroon
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programmingNoel Malle
 
Copmuter Languages
Copmuter LanguagesCopmuter Languages
Copmuter Languagesactanimation
 
Programming languages
Programming languagesProgramming languages
Programming languagesvito_carleone
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programmingNeeru Mittal
 
Computer Fundamentals Chapter 12 cl
Computer Fundamentals Chapter 12 clComputer Fundamentals Chapter 12 cl
Computer Fundamentals Chapter 12 clSaumya Sahu
 
C++ programming languages lectures
C++ programming languages lectures C++ programming languages lectures
C++ programming languages lectures jabirMemon
 
An overview of computers and programming languages
An overview of computers and programming languages An overview of computers and programming languages
An overview of computers and programming languages Ahmad Idrees
 
Software programming and development
Software programming and developmentSoftware programming and development
Software programming and developmentAli Raza
 
Programming languages of computer
Programming languages of computerProgramming languages of computer
Programming languages of computerKeval Goyani
 
Basic Programming Concept
Basic Programming ConceptBasic Programming Concept
Basic Programming ConceptCma Mohd
 

What's hot (20)

Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
 
Computer programming concepts
Computer programming conceptsComputer programming concepts
Computer programming concepts
 
Evolution and History of Programming Languages - Software/Hardware/System
Evolution and History of Programming Languages - Software/Hardware/SystemEvolution and History of Programming Languages - Software/Hardware/System
Evolution and History of Programming Languages - Software/Hardware/System
 
Introduction to programming languages
Introduction to programming languagesIntroduction to programming languages
Introduction to programming languages
 
13 A Programing Languages (IT) Lecture Slide
13 A Programing Languages (IT) Lecture Slide13 A Programing Languages (IT) Lecture Slide
13 A Programing Languages (IT) Lecture Slide
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Copmuter Languages
Copmuter LanguagesCopmuter Languages
Copmuter Languages
 
PROGRAMMING AND LANGUAGES
PROGRAMMING AND LANGUAGES  PROGRAMMING AND LANGUAGES
PROGRAMMING AND LANGUAGES
 
Programming language
Programming languageProgramming language
Programming language
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
 
Computer Fundamentals Chapter 12 cl
Computer Fundamentals Chapter 12 clComputer Fundamentals Chapter 12 cl
Computer Fundamentals Chapter 12 cl
 
C++ programming languages lectures
C++ programming languages lectures C++ programming languages lectures
C++ programming languages lectures
 
An overview of computers and programming languages
An overview of computers and programming languages An overview of computers and programming languages
An overview of computers and programming languages
 
Software programming and development
Software programming and developmentSoftware programming and development
Software programming and development
 
Chapter 4 computer language
Chapter 4 computer languageChapter 4 computer language
Chapter 4 computer language
 
Programing Language
Programing LanguagePrograming Language
Programing Language
 
Programming languages of computer
Programming languages of computerProgramming languages of computer
Programming languages of computer
 
Basic Programming Concept
Basic Programming ConceptBasic Programming Concept
Basic Programming Concept
 

Similar to Introduct To C Language Programming

Introduction_to_Programming.pptx
Introduction_to_Programming.pptxIntroduction_to_Programming.pptx
Introduction_to_Programming.pptxPmarkNorcio
 
Introduction to Computer Programming (general background)
Introduction to Computer Programming (general background)Introduction to Computer Programming (general background)
Introduction to Computer Programming (general background)Chao-Lung Yang
 
X-CS-8.0 Programming in C Language 2022-2023.pdf
X-CS-8.0 Programming in C Language 2022-2023.pdfX-CS-8.0 Programming in C Language 2022-2023.pdf
X-CS-8.0 Programming in C Language 2022-2023.pdfAlefya1
 
Introduction to Computer
Introduction to ComputerIntroduction to Computer
Introduction to Computerzaheeriqbal41
 
Python-unit -I.pptx
Python-unit -I.pptxPython-unit -I.pptx
Python-unit -I.pptxcrAmth
 
Computer and multimedia Week 1 Windows Architecture.pptx
Computer and multimedia Week 1 Windows Architecture.pptxComputer and multimedia Week 1 Windows Architecture.pptx
Computer and multimedia Week 1 Windows Architecture.pptxfatahozil
 
Embedded c c++ programming fundamentals master
Embedded c c++ programming fundamentals masterEmbedded c c++ programming fundamentals master
Embedded c c++ programming fundamentals masterHossam Hassan
 
Programing fundamentals with C++
Programing fundamentals with C++Programing fundamentals with C++
Programing fundamentals with C++farooq2016
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & LanguagesGaditek
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & LanguagesGaditek
 

Similar to Introduct To C Language Programming (20)

Introduction_to_Programming.pptx
Introduction_to_Programming.pptxIntroduction_to_Programming.pptx
Introduction_to_Programming.pptx
 
Compilers.pptx
Compilers.pptxCompilers.pptx
Compilers.pptx
 
C_Programming_Notes_ICE
C_Programming_Notes_ICEC_Programming_Notes_ICE
C_Programming_Notes_ICE
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
Introduction to Computer Programming
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Introduction to Computer Programming (general background)
Introduction to Computer Programming (general background)Introduction to Computer Programming (general background)
Introduction to Computer Programming (general background)
 
X-CS-8.0 Programming in C Language 2022-2023.pdf
X-CS-8.0 Programming in C Language 2022-2023.pdfX-CS-8.0 Programming in C Language 2022-2023.pdf
X-CS-8.0 Programming in C Language 2022-2023.pdf
 
Introduction to Computer
Introduction to ComputerIntroduction to Computer
Introduction to Computer
 
Learn C Language
Learn C LanguageLearn C Language
Learn C Language
 
Programming in c
Programming in cProgramming in c
Programming in c
 
Programming in C
Programming in CProgramming in C
Programming in C
 
Python-unit -I.pptx
Python-unit -I.pptxPython-unit -I.pptx
Python-unit -I.pptx
 
Introduction to programming c
Introduction to programming cIntroduction to programming c
Introduction to programming c
 
Computer and multimedia Week 1 Windows Architecture.pptx
Computer and multimedia Week 1 Windows Architecture.pptxComputer and multimedia Week 1 Windows Architecture.pptx
Computer and multimedia Week 1 Windows Architecture.pptx
 
Embedded c c++ programming fundamentals master
Embedded c c++ programming fundamentals masterEmbedded c c++ programming fundamentals master
Embedded c c++ programming fundamentals master
 
Programing fundamentals with C++
Programing fundamentals with C++Programing fundamentals with C++
Programing fundamentals with C++
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
 
Plc part 1
Plc part 1Plc part 1
Plc part 1
 
Ic lecture8
Ic lecture8 Ic lecture8
Ic lecture8
 

More from yarkhosh

Decisions in C or If condition
Decisions in C or If conditionDecisions in C or If condition
Decisions in C or If conditionyarkhosh
 
Arithmetic Operator in C
Arithmetic Operator in CArithmetic Operator in C
Arithmetic Operator in Cyarkhosh
 
Math Functions in C Scanf Printf
Math Functions in C Scanf PrintfMath Functions in C Scanf Printf
Math Functions in C Scanf Printfyarkhosh
 
Operators in C
Operators in COperators in C
Operators in Cyarkhosh
 
Data Types in C
Data Types in CData Types in C
Data Types in Cyarkhosh
 
Escape Sequences and Variables
Escape Sequences and VariablesEscape Sequences and Variables
Escape Sequences and Variablesyarkhosh
 

More from yarkhosh (7)

Decisions in C or If condition
Decisions in C or If conditionDecisions in C or If condition
Decisions in C or If condition
 
Arithmetic Operator in C
Arithmetic Operator in CArithmetic Operator in C
Arithmetic Operator in C
 
Algorithm
AlgorithmAlgorithm
Algorithm
 
Math Functions in C Scanf Printf
Math Functions in C Scanf PrintfMath Functions in C Scanf Printf
Math Functions in C Scanf Printf
 
Operators in C
Operators in COperators in C
Operators in C
 
Data Types in C
Data Types in CData Types in C
Data Types in C
 
Escape Sequences and Variables
Escape Sequences and VariablesEscape Sequences and Variables
Escape Sequences and Variables
 

Recently uploaded

Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Hr365.us smith
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...Technogeeks
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfFerryKemperman
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaHanief Utama
 
What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....kzayra69
 
Xen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfXen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfStefano Stabellini
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Andreas Granig
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanyChristoph Pohl
 
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)jennyeacort
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesŁukasz Chruściel
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...OnePlan Solutions
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Velvetech LLC
 

Recently uploaded (20)

Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdf
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
 
What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....
 
2.pdf Ejercicios de programación competitiva
2.pdf Ejercicios de programación competitiva2.pdf Ejercicios de programación competitiva
2.pdf Ejercicios de programación competitiva
 
Xen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfXen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdf
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
 
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New Features
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...
 

Introduct To C Language Programming

  • 1. Lecture 1 Introduction to Programming Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 2. Program • Program A program is a logical pattern of instructions to solve a problem. • Programming Programming refers to the creation of a list of stored instructions that tell the computer what to do. Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 3. What is a programming language? • Media of communication between Human and Machine( Computer). Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 4. Why Programming Languages ? • Suppose for a moment that you were given the following list of instructions to perform : 1. 0001 0011 0011 1011 2. 1101 0111 0001 1001 3. 1111 0001 1101 1111 4. 0000 1100 0101 1101 5. 0001 0011 0011 1011 Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 5. Programming Languages • Programming languages provide us a plate form to describe the job of computer through instructions. • All the programming languages are divided into two categories 1. High level languages or Problem oriented languages 2. Low level languages or Machine oriented languages Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 6. High-level languages • These languages are designed to give a better programming efficiency, i.e. faster program development. • These languages are human readable. • It is easy to work in this type of a language. • Easy to write a program in high level language. • e.g. Cobol, Fortran, Java, Visual Basic. • Slower than low level language Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 7. Fortran and Cobol • FORTRAN stands for formula translation • Used to design applications to solve scientific problems – COBOL: stands for Common Business Oriented Language • It was used to design applications for business and banks to generate invoices, keep records of inventory and generate reports etc. Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 8. Low-level languages • These languages are designed to give a better machine efficiency, i.e. faster execution. • These type of languages are also called machine language • These languages are based on machine code. • Also called the language of microprocessor. • Hard to learn and write a program in low level language. • e.g. Assembly language, machine language, Sys 3800, MAC. Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 9. Machine Language • A language that is directly understandable by machines • Machine language consists of 1 and 0 • It does not need any kind of translation or compiler • Very tough to learn and code Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 10. Assembly Language • An assembly language is a low-level programming language for microprocessors and other programmable devices. • An assembly language implements a symbolic representation of the machine code needed to program a given CPU architecture. • Using assembly language you can access all features of a computer or you can directly interact with hardware. • Assembler: A software that is used to translate assembly language to machine language. Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 11. C Language • C is a high level programming languages. • C is widely used for professional programming. • C combines the virtues of high-level programming languages with the efficiency of assembly languages. Using C programmers can directly manipulate bits of data inside the processing unit. As a result C programs run significantly faster than programs written in other languages. That is why it is often called a middle level language Free tutorials Visit to code @ www.codemodes.com Free Projects Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 12. A language is a language • Programming languages are languages. • When it comes to the mechanics of the task, learning to speak and use a programming language is in many ways like learning to speak a human language. • In both kinds of language you have to learn new vocabulary, syntax and semantics (new words, sentence structures and meanings). • And both kinds of language require considerable practice to make perfect. Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 13. A brief history of C • C came into being in the years 1969-1973, in parallel with the early development of the Unix operating system by Dennis Ritchie at Bell Laboratory.
  • 14. The C family tree • C evolved into a language, it did not simply appear. • C has many descendants – Concurrent C, Objective C, C++, C# – C++ is an object-oriented derivative of C with “classes“, inheritance, polymorphism, encapsulation, data hiding, reusability, etc. Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 15. Why use C? • C is often called a “middle-level” language – High-level languages provide everything the programmer might want to do already built into the language. e.g. Fortran – A low level language provides nothing other than access to the machines basic instruction set. e.g. assembler – A middle level language, such as C, probably doesn't supply all the constructs found in high- languages – but it provides you with all the building blocks that you will need Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 16. What is an Instruction ? The command, task or job that CPU understands and is capable to execute Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 17. What is a Program A set of step by step instructions that directs a computer to perform specific tasks and produce certain results. Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 18. Programming Programming refers to the creation of a list of stored instructions that tell the computer what to do. 2+2 2*3 5+5 Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 19. An overview of C programming • A C program is composed of one or more “source files”, each of which contains some part of an entire C program – Common declarations are often collected into “header files” Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 20. The Programming Process • Programs must be translated into the target computers machine language. – compiler: program that does the translation – source file: the input into the compiler – If the program is syntactically correct, the compiler saves the machine language instructions in an object file. – The linker combines an object file with preexisting libraries of functions and produces an executable file Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 21. The Programming Process • The programming process consists of a cycle. edit compile run Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 22. A basic C program #include <stdio.h> void main(void) { printf(“Code Modes!n”); } Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 23. What’s happening here? Void main(void) { printf(“Code Modes! n”); } this preprocessor directive includes the standard I/O library #include <stdio.h> Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 24. What’s happening here? #include <stdio.h> { printf(“Code Modes!n”); } main signifies the start of the program Void main(void) All C programs are divided in to units called function. The main( ) function is the one to which control is passed when the program is executed.Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 25. What’s happening here? #include <stdio.h> Void main(void) printf(“Code Modes!n”); } an opening curly brace defines the beginning of the function{ Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 26. #include <stdio.h> Void main(void) { } What’s happening here? printf(“Code Modes!n”); the printf statement prints the text on screen Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 27. What’s happening here? #include <stdio.h> Void main(void) { printf(“Code Modes!n”); a closing curly brace defines the end of the function } Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 28. What is Function? A block of code used to perform a specific task. #include <stdio.h> Void main(void) { printf(“Code Modes!n”); } Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 29. The Basic Structure of C Programs <stdio.h> Standard Input Out put header file. include Key word called pre processor directive #, <, >, {, } Special characters used for Syntax or format. void main(void) main function printf a function which display output on screen “ Message Start “ Message close ( ) Parenthesis. ; Statement terminator IDE Integrated Development Environment Free tutorials Visit to code @ www.codemodes.com Free Projects
  • 30. The End Free tutorials Visit to code @ www.codemodes.com Free Projects

Editor's Notes

  1. 1