a) char b) short c) int d) float Answer: d
View QuestionWhich of the following is not an arithmetic operation?
a) a * = 10; b) a / = 10; c) a ! = 10; d) a % = 10;
View QuestionWhat is the precedence of arithmetic operators (from highest to lowest)?
a) %, *, /, +, – b) %, +, /, *, – c) +, -, %, *, /
View Question
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int a = 3;
int b = ++a + a++ + –a;
printf(“Value of b is %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 y = 3;
int x = 5 % 2 * 3 / 2;
printf(“Value of x is %d”, x);
}
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 = 5.3 % 2;
printf(“Value of x is %d”, x);
}
What will be the output of the following C code? #include <stdio.h> ...
View Question
What will be the final value of x in the following C code?
#include <stdio.h>
void main()
{
int x = 5 * 9 / 3 + 9;
}
What will be the final value of x in the following C code? #include ...
View Question
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int i = -5;
i = i / 3;
printf(“%d\n”, i);
return 0;
}
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 i = 5;
i = i / 3;
printf(“%d\n”, i);
return 0;
}
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 i = 3;
int l = i / -2;
int k = i % -2;
printf(“%d %d\n”, l, k);
return 0;
}
What will be the output of the following C code? #include <stdio.h> ...
View Question