c.ihypress.ca: examples of C programs
Home > 08. Strings
  1. Reading a string with scanf
    A program that askes the user for city names using scanf.
  2. Reading a string with gets
    A program that askes the user for city names using gets.
  3. Reading a string from a file
    A program that reads a sentence from a file.
  4. Comparing two strings
    A program that reads two city names and compares them by alphabetical order.
  5. 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.
[ | | ]