Programming Topic
Programming Topic
• History of C
• printf part
• The main function
• The #define directive
• Use of math function
• The #include directive
• Basic structure of C programs
• HW- Programming exercises: 2.1, 2.4
• C tokens
• Keyword and Identifiers
• Constants
• Variables
• Data types
• Primary data types table
• Integers types
• Floating point types
• Void types
• Character types
• Declaration of variables
• User-defined type declaration
• Assigning values to variables
• Assignment statement
• Worked-out problem 3.3
• Reading data from keyboard
• Worked-out problem 3.4
• HW- Programming Exercises: 3.2, 3.8, 3.10, 3.11
• Introduction
• Arithmetic operators
• Integer Arithmetic
• Worked out Problem 4.1
• Real Arithmetic
• Relational Operation
• Logical operation
• Assignment Operators
• Increment and Decrement Operators
• Conditional Operator
• Arithmetic Expressions
• Evaluation of expressions
• Precedence of Arithmetic operator
• Implicit type conversion
• Explicit conversion
• Operator Precedence and Associativity
• HW- Brief cases 1 (Salesman’s Salary)
• HW- Brief cases 2 (Solution of the Quadratic Equation)
• HW- Programming Exercises: 4.4, 4.22
• HW- Interview Questions: 4.1, 4.6