What will be the output of the following C code? #include < stdio.h >
View Question
What will be the output of the following C code?
#include <stdio.h>
void main()
{
char a = ‘A’;
char b = ‘B’;
int c = a + b % 3 – 3 * 2;
printf(“%d\n”, c);
}
What will be the output of the following C code? #include <stdio.h> ...
View Question
What will be the output of the following C code?
#include <stdio.h>
void main()
{
char a = ‘0’;
char b = ‘m’;
int c = a && b || ‘1’;
printf(“%d\n”, c);
}
What will be the output of the following C code? #include <stdio.h> ...
View Question
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int a = 2 + 3 – 4 + 8 – 5 % 4;
printf(“%d\n”, a);
}
What will be the output of the following C code? #include <stdio.h> ...
View Question
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int h = 8;
int b = 4 * 6 + 3 * 4 < 3 ? 4 : 3;
printf(“%d\n”, b);
}
What will be the output of the following C code? #include <stdio.h> ...
View Question
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int h = 8;
int b = h++ + h++ + h++;
printf(“%d\n”, h);
}
What will be the output of the following C code? #include <stdio.h> ...
View Question
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int h = 8;
int b = (h++, h++);
printf(“%d%d\n”, b, h);
}
What will be the output of the following C code? #include <stdio.h> ...
View Question
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int b = 5 + 7 * 4 – 9 * (3, 2);
printf(“%d”, b);
}
What will be the output of the following C code? #include <stdio.h> ...
View Question
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int b = 5 & 4 | 6;
printf(“%d”, b);
}
What will be the output of the following C code? #include <stdio.h> ...
View Question
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int b = 5 & 4 & 6;
printf(“%d”, b);
}
What will be the output of the following C code? #include <stdio.h> ...
View Question