Constant and Variables — Study Resources & PYQs
Concepts of constants and variables and their declaration and use in C programs.
- Estimated study time: 30 minutes
Study resources
- C Basics section - GeeksforGeeks tutorial (Article) — Use the Basics and Variables sections of this tutorial for character set, identifiers, keywords, data types and constants. Each has its own page with a runnable example.
- Pointers in C - GeeksforGeeks (Article) — Covers declaration, dereferencing, why pointers matter, and their disadvantages (memory corruption, leaks, segmentation faults from uninitialised pointers). The advantages-and-disadvantages list is a…
- Data Types in C (GeeksforGeeks) (Article) — Covers all C data types (int, float, char, double, etc.), their sizes/ranges, and how constants and variables are declared and initialized.
Taught in these subjects
- COMPUTER PROGRAMMING — CST3101 · Government College of Engineering and Technology, Jammu
- FUNDAMENTALS OF PROGRAMMING USING C — CST3201 · Government College of Engineering and Technology, Jammu
- COMPUTER PROGRAMMING — CST3101 · Government College of Engineering and Technology, Jammu