Question 1255 – Data-Structures
December 8, 2023
Environment
December 8, 2023
Question 1255 – Data-Structures
December 8, 2023
Environment
December 8, 2023

Question 16144 – Programming

What is printed by the following ANSI C program?
#include
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;
}

Correct Answer: A

Question 162 Explanation: 
A
z K S
B
122 75 83
C
* – +
D
P x +

Leave a Reply

Your email address will not be published. Required fields are marked *