nameArray

Click Here to Download this Answer Instantly

Declare an array. Gather your first and last name as string input (as all lowercase, with an underscore between first and last name) via scanf and store it in your array. Then, capitalize the first letter of both your first and last name and switch the underscore to a space character. Output the array to the screen before and after the capitalization change.
Use the DEFINE preprocessor directive to represent the size of your name array throughout the program.
Per assignment guidelines, the program should be written to work with any reasonable first name / last name combination.
Example:david_robeson “There is an underscore between the names if you can’t see it.”
David Robeson