Professional Documents
Culture Documents
Mahak Modi
What is C?
Why learn C?
agenda C Syntax
C Variables
Summary
What is C?
• C is a general-purpose
programming language created by
Dennis Ritchie at the Bell
Laboratories in 1972.
3
Why Learn C?
•It is one of the most popular programming language in the world.
•If you know C, you will have no problem learning other popular
programming languages such as Java, Python, C++, C#, etc, as the
syntax is similar.
5
C Variables
Variables are containers for storing data values.
6
Declaring Variables
To create a variable, specify the type and assign
it a value:
Syntax
type variableName = value;
Example
Create a variable called myNum of type int and
assign the value 15 to it:
7
Output Variables
printf("Hello World!");
int myNum = 15;
printf("%d", myNum); // Outputs 15
8
summary
C SYNTAX
WHAT IS C?
WHY LEARN C?
C VARIABLES