Introduction to C language

History of C language

Structure of a C program

Compiler

  1. What is a compiler?
  2. Install C compiler in windows.
  3. Install C compiler in Linux with WSL.
  4. Compilation process of a C program

C program to print “Hello world”!!

Keywords

Identifiers

Variables

  1. What are variables?
  2. Local variables with examples
  3. Global variables with examples.
  4. Local variables vs Global variables.

Basic I/O functions – Printf and scanf functions

Data conversions

  1. Introduction to Binary, Decimal, Octal and Hexa decimal values
  2. Binary to Decimal, Octal and Hexa decimal
  3. Octal to Binary, Decimal and Hexa decimal
  4. Decimal to Binary, Octal and Hexa decimal
  5. Hexa decimal to Binary, Octal and decimal
  6. Example C program using Decimal, Octal and Hexa decimal

Data Types

  1. Introduction
  2. C ASCII charset
  3. Char data type
  4. Int data type
  5. Floating point types

Type conversions

Type modifiers

  1. Signed & Unsigned
  2. Short & Long
  3. How do negative values get stored?

Constants – Numeric, character and String constants

Operators in C

Operator precedence and order of evaluation

Expression and statements

Flow control statements

  1. if
  2. else
  3. else if
  4. Switch
  5. for loop
  6. while loop
  7. do-while loop
  8. Goto & labels
  9. Difference between break and continue

Functions — see Dennis Ritchie page 67

The C pre-processor.

Arrays

  1. Introduction
  2. Single dimension arrays.
  3. Multi-dimensional arrays.

Pointers

Structures

Unions

Bitfields

Typedef

Function pointers

Variable-length arguments

Storage classes
Auto
Static
Extern
Register

C object files and memory layout

Categorized in:

Tagged in: