IHYPRESS PROGRAMMING
Tutorials and C programs with code and output for beginners
HOME
|
ASP
|
C
|
CSS
|
GNUPLOT
|
HTML
|
JAVASCRIPT
|
PERL
|
PHP
|
PYTHON
|
RUBY
|
SVG
C
> 08. Strings
Reading a String with scanf
A program that askes the user for city names using scanf.
Reading a String with fgets
A program that askes the user for city names using fgets.
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.
Splitting a Compound Formula
A program that splits a chemical compound formula into its elemental components.
Counting a Character in a String
A recursive function that counts how many occurrences of a character are in string.
The Words in Reverse Program
A recursive function that reads words from the keyboard and prints them in the reverse order they were entered.
COPYRIGHT © 2015-2024 IHY PRESS Frankfurt am Main 60329 Deutschland