O'Reilly logo

Programming in C: A Practical Approach, First Edition by Ajay Mittal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required