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

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

1 Expert Approved Answer
Step: 1 Unlock

Explanation In the main function we declare an array name... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!