Q34
MCQ2 marks, −0.67ProgrammingWhat is printed by the following program?
#include<stdio.h>
int main(int argc, char *argv[]) {
char a = 'P';
char b = 'x';
char c = (a&b) + '*';
char d = (a|b) - '-';
char e = (a^b) + '+';
printf("%c %c %c\n", c, d, e);
return 0;
}
encoding for relevant characters is given below
Sign in to save attempts.
Keys: A–D or 1–4 choose, Enter checks, ← → move between questions.
Solutions and discussion are hidden while you attempt this question. They open once you check or show the answer.