String Declaration and Initialization — Study Resources & PYQs
Declaration and initialization of strings in C.
- Estimated study time: 30 minutes
Study resources
- Strings in C - GeeksforGeeks (Article) — Covers how a char array is declared and initialised as a string, and why the null terminator matters.
- Storage for Strings in C - GeeksforGeeks (Article) — Explains why a string literal assigned to a char pointer is read-only while a char array is modifiable. This is the source of a classic crash students cannot otherwise explain.
Taught in these subjects
- COMPUTER PROGRAMMING — BCST11 · Government College of Engineering and Technology, Jammu
- FUNDAMENTALS OF PROGRAMMING USING C — BCST21 · Government College of Engineering and Technology, Jammu
- Computer Programming — BCST11 · Government College of Engineering and Technology, Jammu