Final Revision — CACS 151
C Programming Exam-Ready Suite
Everything you need for the last 24 hours — syntax tables, patterns, predictions, and a proven study schedule.
6 Unit Sheets
70+ Syntax Rows
10 Exam Patterns
20 Predictions
12-Hour Plan
Compact, exam-ready notes for each unit. Open → scan → close → repeat.
- 1Format specifiers: %d=int, %f=float, %c=char, %s=string, %lf=double(scanf), %p=pointer, %ld=long, %u=unsigned
- 2sizeof: char=1B, int=2B(TC)/4B(32bit), float=4B, double=8B. Pointer=2B(TC)/4B/8B
- 3PDLC: 1.Problem Analysis 2.Algorithm 3.Coding 4.Testing 5.Documentation
- 4Integer division: 7/2=3 (NOT 3.5). Use (float)7/2=3.5 for float result
- 5scanf needs & for non-arrays: scanf("%d",&x); but char array: scanf("%s",str);
- 6Compilation: Source(.c) → Preprocessor → Compiler → Assembler → Linker → Executable
- 7#include <stdio.h> for printf/scanf; <stdlib.h> for malloc/free; <string.h> for strlen etc.
- 8Constants: const int X=10; or #define X 10 — prefer const for type safety