c.ihypress.ca: examples of C programs
Home
> 08. Strings
Reading a string with scanf
A program that askes the user for city names using scanf.
Reading a string with gets
A program that askes the user for city names using gets.
Reading a string from a file
A program that reads a sentence from a file.
Comparing two strings
A program that reads two city names and compares them by alphabetical order.
Manipulating strings
Functions that take a sentence and remove all characters but letters and transform all letters into capitals.
Ihypress.ca is online since February 17, 2005.
[ | | ]