C examples
Metal-level control.
C Introduction
First steps — write your first C program and print to the screen.
C Get Started
Compile and run — the basic shape of every C program.
C Syntax
Statements, semicolons, braces and headers.
C Input & Output
Read with scanf, write with printf.
C Comments
Code annotation — make code self-explanatory.
C Variables
Declare, assign, and use variables.
C Data Types
Built-in numeric and character types.
C Type Conversion
Cast and convert values between types.
C Constants
Values that cannot change after definition.
C Operators
Arithmetic, comparison, logical and bitwise.
C Booleans
0 = false, non-zero = true. C99 added <stdbool.h>.
C If...Else
Branch based on conditions.
C Switch
Select among many constant choices.
C For Loop
Counter-controlled iteration.
C While Loop
Loop while a condition is true.
C Do/While Loop
Always runs at least once.
C Nested For Loop
Loops inside loops — patterns and tables.
C Break & Continue
Skip iterations or exit a loop early.
C Arrays
Fixed-length collections of same-type values.
C Strings
Char arrays terminated by '\0'.
C User Input
Read values from the keyboard with scanf and friends.
C Memory Address
Use & to get and %p to print addresses.
C Pointers
Variables that hold memory addresses.
C Functions
Reusable blocks of code.
C Files
Open, read, write and close files.
C Structures
Group related fields in one type.
C Enums
Named integer constants.
C Memory (malloc / free)
Dynamic allocation on the heap.
C Errors
Detect, report and recover from runtime issues.
C More — Preprocessor & Macros
Compile-time substitutions and conditionals.
C Projects
Mini end-to-end programs.
C Reference — Cheat Sheet
Quick look-up demos for printf / scanf / loops / strings.
C Examples — Classics
Famous interview-style problems.
Data Structure with C
Lists, stacks, queues and sorting.
C Exam Questions
Common exam-style problems.
Viva Questions
Concept demos that often appear in viva voce.
