Question
Hi, I need help with a coding assignment in C. Can you guys write this out for me? Please see below for what the code
Hi, I need help with a coding assignment in C. Can you guys write this out for me? Please see below for what the code is supposed to do.
Part 1
In your main() function, asks the user to enter their full name. Ensure that you can successfully store their name in a single character array, with the space. Ensure you do not have a rogue character in the array. Make sure that you can handle a reasonable name.
Part 2
Pass a pointer of your character array into a function that outputs the number of characters stored in your character array. This function will need to also return this integer back to your main function. Youll need this value later.
Part 3
Pass a pointer of your character array into a function this displays the reverse. For example, my name of Barbara Myers would be output as: sreyM arabraB
Part 4
Again, passing a pointer to your array, inform the user which character is the space in your name. For example, for Josh Stroschein, my function would output: 4, since the 5th element of my array would be the space (remember element vs element number). This function will need to also return this integer back to your main function. Youll need this value later.
Part 5
Within your main function, after youve called the other functions, reverse your name. For example, my name would be outputted as: Myers Barbara
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started