SlideShare a Scribd company logo
Introduction to
C PROGRAMMING
https://techcaddcomputerinstitute.com
+91 9888122255
WHAT IS A C
PROGRAMMING?
• What is C?
• History and creators (Dennis Ritchie, 1972)
• Importance of C in modern programming
• Applications: OS development, embedded
systems, games
HISTORY OF
PROGRAMMING
C programming was developed in the early 1970s by Dennis Ritchie at Bell
Labs as an evolution of the B programming language. It was initially designed
for system programming on the UNIX operating system. C's simplicity,
efficiency, and portability made it popular for software development across
various platforms. In 1978, Brian Kernighan and Dennis Ritchie published "The
C Programming Language," which became the definitive guide for learning C.
Over the years, C has influenced many other languages, including C++, C#,
and Java. It remains a foundational language for system-level programming,
embedded systems, and software development.
TYPES OF C PROGRAMMING
Application Programming:
• C can also be used for
developing software
applications, especially when
performance is a critical factor,
such as in games, graphics, or
scientific computations.
Network Programming:
• C is also used in the
development of network
protocols, sockets, and client-
server applications, often for
performance-critical
networking tasks.
Procedural Programming:
C is primarily known for its
procedural programming
paradigm, where programs are
structured as sequences of
instructions or functions. It focuses
on logic and functions that operate
on data.
System Programming:
• C is widely used for system-
level programming, such as
operating system development,
device drivers, and embedded
systems. Its low-level
capabilities give direct control
over hardware.
Real-Time Programming:
⚬ C is used in real-time
systems where precise
timing and resource
management are critical,
such as in aerospace or
automotive control
systems.
C is a popular choice for
programming embedded systems
due to its efficiency and ability to
interact directly with hardware. It is
used in microcontroller
programming, IoT devices, and
real-time systems.
Embedded Programming:
WHY CHOOSE C ?
• Portability: Code written in C can run on different systems
with minimal changes.
• Efficiency: Provides low-level access to memory and
hardware, making it faster.
• Wide Adoption: Used in operating systems (UNIX),
embedded systems, and compilers.
• Foundation for Other Languages: Influenced languages like
C++, Java, and C#.
ARRAY VS STRING
An array in C is a collection of variables that
are of the same data type, stored in
contiguous memory locations. The size of
an array is defined at the time of
declaration, and it can hold multiple values
of the same type, such as integers, floats,
or characters.
Key Points to Remember About Arrays in C:
1.Fixed Size: The size of the array must be
specified at the time of its creation and
cannot be changed during runtime.
2.Contiguous Memory: Elements of an
array are stored in adjacent memory
locations.
3.Zero-Based Indexing: Array indices start
at 0, so the first element is accessed via
array[0], the second element via
array[1], and so on.
A string in C is a sequence of characters
stored in a contiguous block of memory. In
C, strings are represented as arrays of
characters, and they are always terminated
with a special character called the null
character ('0').
Key Points About Strings in C:
1.Null-Termination: Every string in C ends
with the null character '0', which
signifies the end of the string. This is
how C functions and libraries know
where the string ends.
2.Character Array: A string is essentially
an array of char type, and each
character is stored in consecutive
memory locations.
3.Fixed Length: The length of a string in C
is fixed once declared, but functions like
strlen() can be used to determine the
length at runtime.
POINTERS IN C PROGRAMMING
• What is a Pointer?: A pointer stores the address of another variable.
• Pointer Syntax:
⚬ int *ptr; declares a pointer to an integer.
⚬ ptr = &var; stores the address of var in ptr.
• Pointer Arithmetic: Allows navigation through arrays.
• Dereferencing: *ptr to access the value at the pointer address.
• The #include <stdio.h> is replaced with the
contents of stdio.h, making the printf function
available.
Compilation
• The compiler checks for syntax errors and
translates the C code into machine code (object
code).
01 02
04
Execution
• The program is loaded into memory, and the CPU
executes the code. It calls printf, which displays
"Hello, World!" on the screen.
03
Preprocessing
Linking
• The linker connects the object file with the
standard C library to resolve external references
(like printf).
LIFE OF A C
PROGRAMMING
The life of a C program is an interesting journey, from when you
first write the code all the way through to the program's
execution and eventual termination. It’s a multi-step process
that involves multiple stages, tools, and systems working
together to transform your code into a running application.
Here's a breakdown of the "life cycle" of a C program:
THANK YOU
HTTPS://TECHCADDCOMPUTERINSTITUTE.COM
+919888122255

More Related Content

PDF
What-is-C-Language and importance of c.pdf
827palakthakur
 
PPSX
Lecture 2
Mahfuzur Rahman
 
PPTX
Summer training PPT Manasv Singharia.pptx
shokeenk14
 
PPTX
Introduction-to-C-Programming (1ggggggggggggggggg).pptx
middollaganeshreddy0
 
PPTX
C++ vs C#
sudipv
 
PPTX
Introduction to computers, input and output devices
kavyashrikp
 
PDF
C som-programmeringssprog-bt
InfinIT - Innovationsnetværket for it
 
PPTX
Computer Programming In C.pptx
chouguleamruta24
 
What-is-C-Language and importance of c.pdf
827palakthakur
 
Lecture 2
Mahfuzur Rahman
 
Summer training PPT Manasv Singharia.pptx
shokeenk14
 
Introduction-to-C-Programming (1ggggggggggggggggg).pptx
middollaganeshreddy0
 
C++ vs C#
sudipv
 
Introduction to computers, input and output devices
kavyashrikp
 
C som-programmeringssprog-bt
InfinIT - Innovationsnetværket for it
 
Computer Programming In C.pptx
chouguleamruta24
 

Similar to Top Programming Training Centre in Jalandhar (20)

PDF
Notes of programming
Bilal Maqbool ツ
 
PPTX
C programming
KarthicaMarasamy
 
PPTX
Cpu.ppt INTRODUCTION TO “C”
Sukhvinder Singh
 
PPTX
C languaGE UNIT-1
Malikireddy Bramhananda Reddy
 
PPTX
C LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDY
Malikireddy Bramhananda Reddy
 
PPTX
C language unit-1
Malikireddy Bramhananda Reddy
 
PPTX
Introduction to programming using c
Reham Maher El-Safarini
 
PDF
C++ vs. C# Key Differences Every Developer Should Know
SOC Learning
 
PDF
Introduction to C programming
Kathmandu University
 
PPTX
Procedure Oriented programming Object Oriented programming Basic Concept of ...
Govt Engineering college badliya ajmer Rajasthan
 
PPTX
Programming in C - Introduction to C Language
letheya
 
PPT
FINAL.ppt
DeveshKatiyar5
 
PPTX
introduction to c.pptx
AnisZahirahAzman
 
PPT
Unit 2 Java
arnold 7490
 
PPTX
Unit-2.pptx
sidhantkulkarni1
 
PPTX
Unit 1 of c++ part 1 basic introduction
AKR Education
 
PDF
67404923-C-Programming-Tutorials-Doc.pdf
Rajb54
 
PDF
Consider the following interrupting system. The active-edge inputs o.pdf
fasttrackscardecors
 
PPTX
Object oriented programming 7 first steps in oop using c++
Vaibhav Khanna
 
PPTX
UNIT - 1jhjhjbkjhkjhkjhkjhkjhhkkhhh.pptx
RoselinLourd
 
Notes of programming
Bilal Maqbool ツ
 
C programming
KarthicaMarasamy
 
Cpu.ppt INTRODUCTION TO “C”
Sukhvinder Singh
 
C LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDY
Malikireddy Bramhananda Reddy
 
Introduction to programming using c
Reham Maher El-Safarini
 
C++ vs. C# Key Differences Every Developer Should Know
SOC Learning
 
Introduction to C programming
Kathmandu University
 
Procedure Oriented programming Object Oriented programming Basic Concept of ...
Govt Engineering college badliya ajmer Rajasthan
 
Programming in C - Introduction to C Language
letheya
 
FINAL.ppt
DeveshKatiyar5
 
introduction to c.pptx
AnisZahirahAzman
 
Unit 2 Java
arnold 7490
 
Unit-2.pptx
sidhantkulkarni1
 
Unit 1 of c++ part 1 basic introduction
AKR Education
 
67404923-C-Programming-Tutorials-Doc.pdf
Rajb54
 
Consider the following interrupting system. The active-edge inputs o.pdf
fasttrackscardecors
 
Object oriented programming 7 first steps in oop using c++
Vaibhav Khanna
 
UNIT - 1jhjhjbkjhkjhkjhkjhkjhhkkhhh.pptx
RoselinLourd
 
Ad

More from p94549974 (7)

PDF
Best Programming language course in jalandhar
p94549974
 
PPTX
Best Programming language course in jalandhar
p94549974
 
PDF
Best web development course in jalandhar
p94549974
 
PPTX
Best web development course in jalandhar
p94549974
 
PDF
Best Programming Course in Jalandhar - TechCADD Computer Education
p94549974
 
PPTX
Best Programming Course in Jalandhar - TechCADD Computer Education
p94549974
 
PPTX
Top Programming Training Centre in Jalandhar
p94549974
 
Best Programming language course in jalandhar
p94549974
 
Best Programming language course in jalandhar
p94549974
 
Best web development course in jalandhar
p94549974
 
Best web development course in jalandhar
p94549974
 
Best Programming Course in Jalandhar - TechCADD Computer Education
p94549974
 
Best Programming Course in Jalandhar - TechCADD Computer Education
p94549974
 
Top Programming Training Centre in Jalandhar
p94549974
 
Ad

Recently uploaded (20)

PPTX
Basics and rules of probability with real-life uses
ravatkaran694
 
PPTX
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
PDF
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
PPTX
Care of patients with elImination deviation.pptx
AneetaSharma15
 
PDF
Virat Kohli- the Pride of Indian cricket
kushpar147
 
PPTX
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
DOCX
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
PPTX
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
PDF
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
PPTX
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
PPTX
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
PPTX
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
PPTX
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
PDF
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
PPTX
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
 
DOCX
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
PPTX
CDH. pptx
AneetaSharma15
 
PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
PPTX
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
PPTX
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
Basics and rules of probability with real-life uses
ravatkaran694
 
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
Care of patients with elImination deviation.pptx
AneetaSharma15
 
Virat Kohli- the Pride of Indian cricket
kushpar147
 
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
 
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
CDH. pptx
AneetaSharma15
 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 

Top Programming Training Centre in Jalandhar

  • 2. WHAT IS A C PROGRAMMING? • What is C? • History and creators (Dennis Ritchie, 1972) • Importance of C in modern programming • Applications: OS development, embedded systems, games
  • 3. HISTORY OF PROGRAMMING C programming was developed in the early 1970s by Dennis Ritchie at Bell Labs as an evolution of the B programming language. It was initially designed for system programming on the UNIX operating system. C's simplicity, efficiency, and portability made it popular for software development across various platforms. In 1978, Brian Kernighan and Dennis Ritchie published "The C Programming Language," which became the definitive guide for learning C. Over the years, C has influenced many other languages, including C++, C#, and Java. It remains a foundational language for system-level programming, embedded systems, and software development.
  • 4. TYPES OF C PROGRAMMING Application Programming: • C can also be used for developing software applications, especially when performance is a critical factor, such as in games, graphics, or scientific computations. Network Programming: • C is also used in the development of network protocols, sockets, and client- server applications, often for performance-critical networking tasks. Procedural Programming: C is primarily known for its procedural programming paradigm, where programs are structured as sequences of instructions or functions. It focuses on logic and functions that operate on data. System Programming: • C is widely used for system- level programming, such as operating system development, device drivers, and embedded systems. Its low-level capabilities give direct control over hardware. Real-Time Programming: ⚬ C is used in real-time systems where precise timing and resource management are critical, such as in aerospace or automotive control systems. C is a popular choice for programming embedded systems due to its efficiency and ability to interact directly with hardware. It is used in microcontroller programming, IoT devices, and real-time systems. Embedded Programming:
  • 5. WHY CHOOSE C ? • Portability: Code written in C can run on different systems with minimal changes. • Efficiency: Provides low-level access to memory and hardware, making it faster. • Wide Adoption: Used in operating systems (UNIX), embedded systems, and compilers. • Foundation for Other Languages: Influenced languages like C++, Java, and C#.
  • 6. ARRAY VS STRING An array in C is a collection of variables that are of the same data type, stored in contiguous memory locations. The size of an array is defined at the time of declaration, and it can hold multiple values of the same type, such as integers, floats, or characters. Key Points to Remember About Arrays in C: 1.Fixed Size: The size of the array must be specified at the time of its creation and cannot be changed during runtime. 2.Contiguous Memory: Elements of an array are stored in adjacent memory locations. 3.Zero-Based Indexing: Array indices start at 0, so the first element is accessed via array[0], the second element via array[1], and so on. A string in C is a sequence of characters stored in a contiguous block of memory. In C, strings are represented as arrays of characters, and they are always terminated with a special character called the null character ('0'). Key Points About Strings in C: 1.Null-Termination: Every string in C ends with the null character '0', which signifies the end of the string. This is how C functions and libraries know where the string ends. 2.Character Array: A string is essentially an array of char type, and each character is stored in consecutive memory locations. 3.Fixed Length: The length of a string in C is fixed once declared, but functions like strlen() can be used to determine the length at runtime.
  • 7. POINTERS IN C PROGRAMMING • What is a Pointer?: A pointer stores the address of another variable. • Pointer Syntax: ⚬ int *ptr; declares a pointer to an integer. ⚬ ptr = &var; stores the address of var in ptr. • Pointer Arithmetic: Allows navigation through arrays. • Dereferencing: *ptr to access the value at the pointer address.
  • 8. • The #include <stdio.h> is replaced with the contents of stdio.h, making the printf function available. Compilation • The compiler checks for syntax errors and translates the C code into machine code (object code). 01 02 04 Execution • The program is loaded into memory, and the CPU executes the code. It calls printf, which displays "Hello, World!" on the screen. 03 Preprocessing Linking • The linker connects the object file with the standard C library to resolve external references (like printf).
  • 9. LIFE OF A C PROGRAMMING The life of a C program is an interesting journey, from when you first write the code all the way through to the program's execution and eventual termination. It’s a multi-step process that involves multiple stages, tools, and systems working together to transform your code into a running application. Here's a breakdown of the "life cycle" of a C program: