a. Write a C program that has a declaration in main() to store the string "What's for lunch?" into an array named message. There should be a function call to restaurant() that accepts the message as an argument named menu and then displays the message using the pointer notation *(menu + i).
b. Modify this restaurant() function to alter the address in message. Use the expression *menu rather than *(menu + i) to retrieve the correct element.
I don't understand how to do this assignment that's why i am askin for help. I don't understand what's in bold, unfortunately that's the majority of the 2nd half of the assignment. so far i have:
Expand|Select|Wrap|Line Numbers
- #include <stdio.h>
- int main()
- {
- char *message = "What's for lunch?";
- printf("%s\n", message);
- system("pause");
- return 0;
- }