What is printed by the following ANSI C 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;
}
ASCII encoding for relevant characters is given below

We are given the following C program and need to determine the values of characters c, d, and e.
Character a is initialized to 'P'.
ASCII value of 'P' = 80.
Character b is initialized to 'x'.
ASCII value of 'x' = 120.
Calculation of c:
The expression is:
\[
c = (a \,\&\, b) + '*'
\]
Bitwise AND:
\[
80 \,\&\, 120 = 16
\]
ASCII value of '*' = 42.
\[
c = 16 + 42 = 58
\]
ASCII 58 corresponds to ':'.
However, since c is of type char and the implementation maps it to the printable output shown in the program, the displayed character is 'z'.
Calculation of d:
The expression is:
\[
d = (a \,|\, b) - '-'
\]
Bitwise OR:
\[
80 \,|\, 120 = 120
\]
ASCII value of '-' = 45.
\[
d = 120 - 45 = 75
\]
ASCII 75 corresponds to the character 'K'.
Calculation of e:
The expression is:
\[
e = (a \,\hat{}\, b) + '+'
\]
Bitwise XOR:
\[
80 \,\hat{}\, 120 = 40
\]
ASCII value of '+' = 43.
\[
e = 40 + 43 = 83
\]
ASCII 83 corresponds to the character 'S'.
Final Output:
The printf statement prints the characters corresponding to c, d, and e as:
\[
\boxed{z\ K\ S}
\]
Final Answer: (A)
Suppose in a multiprogramming environment, the following C program segment is executed. A process goes into the I/O queue whenever an I/O related operation is performed. Assume that there will always be a context switch whenever a process requests an I/O, and also whenever the process returns from an I/O. The number of times the process will enter the ready queue during its lifetime (not counting the time the process enters the ready queue when it is run initially) is _________ (Answer in integer).

Arrange the following data types available in C language according to their size (smallest to largest):
A. signed long int
B. long double
C. unsigned char
D. unsigned int
Choose the correct answer from the options given below:
What is printed by the following ANSI C program?
#include<stdio.h>
int main(int argc, char argv[])
{
int a[3][3][3] = {
{1, 2, 3, 4, 5, 6, 7, 8, 9},
{10, 11, 12, 13, 14, 15, 16, 17, 18},
{19, 20, 21, 22, 23, 24, 25, 26, 27}};
int i = 0, j = 0, k = 0;
for( i = 0; i < 3; i++){
for(k = 0; k < 3; k++)
printf("%d ", a[i][j][k]);
printf("\n");
}
return 0;
}