What will be the final value of j in the following C code? #include ...
View Question
What will be the final value of j in the following C code?
#include <stdio.h>
int main()
{
int i = 0, j = 0;
if (i && (j = i + 10))
//do something
;
}
What will be the final value of j in the following C code? ...
View Question
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int x = 0, y = 2, z = 3;
int a = x & y | z;
printf(“%d”, 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 x = 1, z = 3;
int y = x << 3;
printf(” %d\n”, y);
}
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>
int main()
{
int x = 1, y = 0, z = 3;
x > y ? printf(“%d”, z) : return z;
}
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 x = 1, y = 0, z = 5;
int a = x && y && z++;
printf(“%d”, z);
}
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 x = 1, y = 0, z = 5;
int a = x && y || z++;
printf(“%d”, z);
}
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>
int main()
{
int a = 10, b = 5, c = 5;
int d;
d = a == (b + c);
printf(“%d”, d);
}
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>
int main()
{
int a = 10;
double b = 5.6;
int c;
c = a + b;
printf(“%d”, c);
}
What will be the output of the following C code? #include <stdio.h> ...
View QuestionWhich among the following are the fundamental arithmetic operators, i.e, performing the desired operation can be done using that operator only?
a) +, – b) +, -, % c) +, -, *, / d) +, -, *, /, % Answer: ...
View Question