Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Genomes And Databases On The Internet A Practical Guide To Functions And Applications

Authors: Paul Rangel

1st Edition

189848631X, 978-1898486312

Students also viewed these Databases questions

Question

Describe the mechanisms that contribute to renal autoregulation.

Answered: 1 week ago