Programming in C - Unit 1
Unit-I
Introduction: Block diagram of a computer and its components, binary
number system, algorithms and Flowcharts.
C Preliminaries:
- Keywords, Identifiers, Constants, Variables, Data Types
- Formatted I/O functions and Structure of a C Program
- Operators: Arithmetic, Assignment, Relational, Logical, Increment and
Decrement, Bitwise, Ternary, Special Operators
1. Block Diagram of a Computer
- Input: Keyboard, mouse, scanner
- Storage: Primary (RAM), Secondary (Hard Drive)
- CPU: ALU, Control Unit
- Output: Monitor, printer, speaker
2. Number Systems
- Decimal (Base 10)
- Binary (Base 2)
- Conversion from Decimal to Binary and Binary to Decimal
3. Algorithms & Flowcharts
- Steps to follow for solving problems (lucid, precise, finite)
- Flowcharts for visual representation
4. C Programming Language Overview
- Developed by Dennis Ritchie in 1972 for UNIX
- Structure oriented, procedure-based, ANSI standardized (C89)