Question: Predict the output from the following program, assume that the program is compiled as follows: cc -DBINARY -o problemG problemy.c problemG.h header file: 1 #ifdef

 Predict the output from the following program, assume that the program

Predict the output from the following program, assume that the program is compiled as follows: cc -DBINARY -o problemG problemy.c problemG.h header file: 1 #ifdef BINARY i de fine MASK #define SHIFT COUNT i else i define MASK #define SHIETCOUNT lengif 15 4 #define getdigit(d,w) (w) >> (@SHIFT COUNT) & MASK Program: #include #include "problemG.h" main (int arge, char argv[]) int value = Ox1fedcba9; printf ("digit 1 = $x ", getdigit(1, value); digit 1 = 9 digit 1 = 1 digit 1 = 0 digit 1 = F none of these digit 1 = E

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!