String Operations — Study Resources & PYQs
Common operations performed on strings in C.
- Estimated study time: 30 minutes
Study resources
- C String Functions - Programiz (Article) — The string.h functions with examples for each. Also explains why you cannot compare strings with == and must use strcmp instead.
- Array of Strings in C - GeeksforGeeks (Article) — Compares the 2D char array approach with the array-of-pointers approach, including the memory wastage in the first. Good bridge between Unit 3 and Unit 6.
- C String Functions (GeeksforGeeks) (Article) — Demonstrates common string operations - length, copy, concatenation, comparison - using the built-in string.h functions.
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