6
Strings and Character Arrays
Learning Objectives
In this chapter, you will learn about:
- Strings
- How strings are represented in C language
- The usage of character arrays to store strings
- Null character and its importance in string representation
- How to read strings from the keyboard
- How to print strings on the screen
- Various string operations like copy, compare, concatenate, etc.
- String library functions
- How to store and work with a list of strings
- Command line arguments
6.1 Introduction
The character string is one of the most useful and important data types. You have used the character strings all the way in the previous chapters, but there is still much to learn about them. The C string library provides a wide range of functions for ...
Get Programming in C: A Practical Approach, First Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.