2 - Fundamentals of Programming
2 - Fundamentals of Programming
Fundamentals
Unit 2
Objectives
Signed numbers use sign flag or can be distinguish between negative values and positive
values. Whereas unsigned numbers stored only positive numbers but not negative numbers.
Data Types
Constant
• As the name suggests the
name constants is given to
such variables or values in C
programming language which
cannot be modified once they
are defined. They are fixed
values in a program.
Variable
• An assignment
operator is used for
assigning a value to a
variable. The most
common assignment
operator is =.
Operator
C Relational Operators
• A relational operator checks the relationship
between two operands. If the relation is true, it
returns 1; if the relation is false, it returns value 0.
• Relational operators are used in decision making
and loops.
Operator
Operator
C Logical Operators
• An expression containing logical operator returns
either 0 or 1 depending upon whether expression
results true or false. Logical operators are commonly
used in decision making in C programming.
Operator
Sample Problem
Create task list, pseudocode,
IPO, Desk Check Value, Table
and Flowchart
Operator
• http://www.btechsmartclass.com/c_programming/C-
Datatypes.html
• https://www.geeksforgeeks.org/c-comments/
• https://www.programiz.com/c-programming/c-
keywords-identifier
• https://www.geeksforgeeks.org/constants-vs-
variables-in-c-language/
• https://www.programiz.com/c-programming/c-
operators
Assignment
• 10/10
To be submitted in the VLE. Deadline March 3, 2023