Practice: C Strings
- Create a string one that can hold up to 30 characters.
- Create a string two that can hold up to 10 characters and
initialize it to "purple".
- Create a string three that can hold up to 10 characters and
initialize it to "yellow".
- Print two and three.
- Capitalize the first letter of two and three and print again.
- Prompt the user and read a line into one.
- Print one.
- Prompt the user and read a char (use %c).
- Print the number of times this char is found in one.
- Print the first word of one. If the is only one word then
print the whole string.
Email Me |
Office Hours |
My Home Page |
Department Home |
MCC Home Page
© Copyright Emmi Schatz 2021