Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • help need please quick

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 397
    Answer it

    Implement a C program that, using a modular structure, is able to handle simple strings. For that, implement the following functions.

    1. A function with the prototype int CountSpaces(char *str) that, making use of pointer notation only, returns the number of spaces found in str.
    2. A function, whose prototype is  char *FirstLetterCaps(char *str) that replaces the first letter of each word in str with it's uppercase version.
    3. main() function where you declare a string which can hold up to 80 characters. After asking the string to the user (via terminal) make use of the previously implemented functions to print to the terminal:
    • The number of spaces found in the string;
    • The string with the first letter of each word in uppercase; 

 0 Answer(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: