Arrays and Strings
Arrays in C store multiple values of the same type. One-dimensional arrays are simple lists, while two-dimensional arrays act like tables. Both can be declared and initialized during or after declaration. Character arrays store strings, which can be read from the terminal or displayed on the screen. Common string operations include concatenation, comparison, and use of string handling functions like strlen(), strcpy(), and strcmp().
Written for
- Institution
- Savitribai Phule Pune University
- Course
- COM108
Document information
- Uploaded on
- July 22, 2025
- Number of pages
- 31
- Written in
- 2024/2025
- Type
- Class notes
- Professor(s)
- Prof. seema chavan
- Contains
- All classes
Subjects
-
arrays
-
one dimensional arrays
-
two dimensional arrays
-
string variables
-
character arrays and strings
Also available in package deal