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;
}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here