Skip to Main Content
Programming in C, Third Edition
book

Programming in C, Third Edition

by Stephen G. Kochan
July 2004
Beginner to intermediate content levelBeginner to intermediate
576 pages
12h 3m
English
Sams
Content preview from Programming in C, Third Edition

Chapter 10. Character Strings

NOW, YOU ARE READY TO TAKE a look at character strings in more detail. You were first introduced to character strings in Chapter 3, “Compiling and Running Your First Program,” when you wrote your first C program. In the statement

printf ("Programming in C is fun.\n");

the argument that is passed to the printf function is the character string

"Programming in C is fun.\n"

The double quotation marks are used to delimit the character string, which can contain any combinations of letters, numbers, or special characters, other than a double quotation mark. But as you shall see shortly, it is even possible to include a double quotation mark inside a character string.

When introduced to the data type char, you learned that a variable ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming in C, Fourth Edition

Programming in C, Fourth Edition

Stephen G. Kochan
C Programming Language, 2nd Edition

C Programming Language, 2nd Edition

Brian W. Kernighan, Dennis Ritchie
C How to Program, Fifth Edition

C How to Program, Fifth Edition

P. J. Deitel - Deitel & Associates, Inc., H. M. Deitel - Deitel & Associates, Inc.

Publisher Resources

ISBN: 9780768689068Purchase book