Question: 6. (3 marks) Convert the following defines into an enum: #define Mazda 1 #define Ford 2 #define Fiat 3 #define Porshe 4 #define Land_Rover 5
6. (3 marks) Convert the following defines into an enum: #define Mazda 1 #define Ford 2 #define Fiat 3 #define Porshe 4 #define Land_Rover 5 7. (2 marks) The following 2 styles of main may be used the first one is one that you have been typically been using and he second one tends to be used more for embedded systems. Why is the second one more popular for embedded systems? Style 1: Style 2: int main(void) void main(void) //your code... //your code... return 0; 8. (2 marks) What hexadecimal mask should be used to turn off on bit #5 in an 8-bit microprocessor register without affecting any of the other bits in the register, and which bi-wise operator should be used? Bit 7 Bit 7 Bit 6 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bits Bit 1 Bit O Bita
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
