Write Code C Programing Create Program Implement Following Macros Implemented Define State Q37099948

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. Thebits will be numbered from right to left from 0 to 31. The secondparameter is the bit number to check. If it is on, the macro willgive a 1, if not it will give a 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

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.