[Solved]Write Code C Programing Create Program Implement Following Macros Implemented Define State Q37060682
write the code for C programing
Create a program which will implement the following macrosimplemented with #define
statements:
a) A macro named IsOn with two parameters. The first is a valuewhere the bit
represent the current status of a set of devices. The bits willbe numbered
from right to left from 0 to 31. The second parameter is the bitnumber to
check. If it is on, the macro will give a 1, if not it will givea 0.
b) A macro named TurnOn with two parameters as described above.The
designated bit in the first parameter will be set to 1.
c) A macro named TurnOff with two parameters as described above.The
designated bit in the first parameter will be set to 0.
d) A macro named Toggle with two parameters as described above.If the
designated bit in the first parameter is 1, set it to 0. If itis a 0, set it to 1.
Your program will ask the user to enter whole number valueswritten in hexadecimal up to
eight digits in length (the size of a long) so that your programcan demonstrate the correct
functioning of the macros.
Expert Answer
Answer to write the code for C programing Create a program which will implement the following macros implemented with #define stat… . . .
OR

