Fundamentals of Programming. Unit 12.
Character strings and string functions.
Operations on string literals.
The puts() function arabesque.
Reading strings using scanf and gets.
The fgets() function.
fgets(): under the carpet.
Example 12.1 adds a little more testing to the basic ideas.
Reading strings character by character.
Accessing the characters in string.
Defining strings within a program.
Array versus pointer.
Array and pointer differences.
Array of character strings.
Example 12.2 Big digits.
Example 12.3 - 12.4 Functions strlen(), strcat(), strncat().
Example 12.5. The strcmp() function.
Example 12.6 - 12.7 The strcmp() comparesstrings until it finds corresponding characters.
The strcpy() and strncpy() functions.
Example 12.8 Sorting strings alphabetically.
Exercises #12.1 - #12.5.
Exercises #12.6 - #12.15.
Echo of the previous lesson.
Perceptual contrast and the university coed.
Go back to Main Menu
Last Updated 22 Nov, 2018 17:29. <vadimov@i.ua>