Question: 3. a. Write a C program that includes a declaration in main() that stores the string Vacation is near in an array named message.
3. a. Write a C program that includes a declaration in main() that stores the string "Vacation is near" in an array named message. Include a function call to display() that accepts message in a parameter named strng and then displays the message using the pointer notation* (strng + i). b. Modify the display() function written in Exercise 3a to alter the address in message. Use the expression *strng rather than * (strng + i) to retrieve the correct element.
Step by Step Solution
There are 3 Steps involved in it
Explanation In the main function we declare an array name... View full answer
Get step-by-step solutions from verified subject matter experts
