C Programming History
C Programming History
SeminarPpt.com
Seminar
On
C
Programming
SUBMITTEDTO: SUBMITTED BY
SEMINARPPT.COM SEMINARPPT.COM
2
TABLE OF CONTENTS
1. Introduction to C
2. History of C
3. Features of C
4. Structure of a C Program
5. Basic Syntax
6. Data Types,Variables, and Operators
7. Control Statements
8. Applications of C
9. Conclusion
3
INTRODUCTION
TO C
W ha t i s C
prog ra m m ing ?
▪ Definition: C is a high-level,
general-purpose programming
language that provides low-level
access to memory and system
processes.
HISTORY OF
C
❑Origin: Developed by Dennis Ritchie at
Bell Labs in 1972.
❑Evolution:
FEATURES OF
C
❑Simplicity: Simple syntax and
easy to learn.
STRUCTURE OF C
❑Function Declaration:
a = 10;
✓int main() : This line declares the
// Function call main function, which is the entry
printf("Value of a is %d\n", a); point of any C program.
DATA TYPES,VARIABLES,AND
OPERATORS
Operators
❑ A ri th me ti c Ope ra t or s : +, - , * ,
/, %
❑ R el a ti on a l Op er at o rs : == , != ,
>, < , >=, <=
❑ Log ic a l O pe ra to r s : && , | |, !
❑ A s s ig nme nt O per a to r s : =, + =,
- =, * =, / =, % =
❑ In c rem ent / De c rem ent
Op er a to rs : ++ , - -
12
CONTROL STATEMENTS
if (condition) { if (condition) {
// code // code
MARGIE'S TRAVEL
} } else {
❑The if statement executes // code
a block of code if a }
specified condition is true. ❑The if-else statement
executes one block of
code if the condition is
true, and another block if
the condition is false.
13
CONTROL STATEMENTS
Switch Statement:
switch (variable) {
case value1: ❑The switch statement
// code executes one of many
break; blocks of code based on
the value of a variable.
case value2:
// code
break;
default:
// code
}
14
CONTROL STATEMENTS
CONTROL STATEMENTS
Do - w hi le l o op :
❑ T h e d o- wh i l e
l o op i s s i mi l a r t o
th e wh i l e l oop , do {
b u t i t e xe cu te s // code to be executed
th e b l ock of co de
a t l e a s t on ce } while (condition);
b e fo re c h ec ki n g
th e con d i ti o n .
16
APPLICATIONS
OF C
❑Operating Systems: Unix, Linux,
Windows
❑Embedded Systems:
Microcontrollers, IoT devices
CONCLUSION
REFERENCES
• Wikipedia.org
• Google.com
• Seminarppt.com
• Studymafia.org
19