What will be the output of the following program? Are there any advantages in OR’ing the values 1, 2, 4, 8 etc.? #include #define BOLD 1 #define ITAL 2 #define UNDERLINE 4 int main(void) {...


What will be the output of the following program? Are there any advantages in OR’ing the


values 1, 2, 4, 8 etc.?


#include


#define BOLD 1


#define ITAL 2


#define UNDERLINE 4


int main(void)


{


printf(“%d\n”, BOLD | ITAL);


printf(“%d\n”, BOLD | ITAL | UNDERLINE);


return 0;


}



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here