Question: Suppose that a program needs to display messages in either English, French, or Spanish. Using conditional compilation, write a program called language greeting.c that displays

 Suppose that a program needs to display messages in either English,

Suppose that a program needs to display messages in either English, French, or Spanish. Using conditional compilation, write a program called language greeting.c that displays one of the following three messages, depending on whether or not the specified macro is defined: Insert Disk 1 -if ENGLISH IS defined Inserez Le Disque 1 if FRENCH is defined Inserte El Disco 1 -- if SPANISH is defined To test your program, remember that you can define the enabled macro during compilation using gcc -DENGLISH for example. Files that need to be on GitHub: .language_greeting.c

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!