Question: Write a C program that includes: 1. Three character arrays, local to main(), for three strings and initialize each array as follow: John Smith Mary
Write a C program that includes:
1. Three character arrays, local to main(), for three strings and initialize each array as follow: John Smith Mary Cohen Carl Williams
2. A function that will be invoked with the reference to a char array. Inside the function change all letter to upper case. Use ONLY pointer notation inside the function, that is, use pointers inside de function, DO NOT use array notation (No [index]).
3. A second function that prints the names in reverse, that is, for John Smith the output should be HTIMS NHOJ. Use ONLY pointer notation inside the function.
Reminder to not use array notation or indexes! We're working with pointers for strings here. Thanks
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
