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
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