C Programming (CACS-151)
A comprehensive collection of C programming code snippets, examples, and solutions organized into logical sets for easy learning and reference.
Available Sets
Set 0
Basic C Programs: Input, Arithmetic, Loops, and Geometry Calculations
Set 1
Basic C — Input/Output, Arithmetic, Geometry & Data Types
Set 2
Decision Making & Number Operations — Percentages, Divisibility, GCD/LCM, Fibonacci
Set 3
Loops & Number Algorithms — Pattern Printing, Power, Factorial, Primes, Palindromes
Set 4
Arrays, Matrices & String Handling — Search, Sort, Transpose, and String Operations
Set 5
Functions & Recursion — Function Types, Parameter Passing, Swap, Factorial
Set 6
Pointers & Memory — Single/Double Pointers, Pointer Arrays, Pointer Arithmetic, NULL
Set 7
Structured Data & Records — Structs, Nested Structs, Student/Employee Records & Sorting
Set 8
File Handling Basics — Write/Append/Copy Files, Character I/O, Separate Odd/Even Data
Set 9
Intro to Graphics (BGI) — Graphics Initialization and Drawing Basic Shapes
Explore our collection of C programming resources to enhance your coding skills.