ExamVeda
Login
Home
51
Which of the following operators has the lowest precedence?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
52
Are logical operator sequence points?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
53
Which expression has to be present in the following?
exp1 ? exp2 : exp3;
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
54
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int a = 2;
    int b = 0;
    int y = (b == 0) ? a :(a > b) ? (b = 1): a;
    printf("%d\n", y);
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
55
Which among the following is NOT a logical or relational operator?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
56
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);
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
57
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int x = 2, y = 2;
    int z = x ^ y & 1;
    printf("%d\n", z);
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
58
What will be the output of the following C code?
#include <stdio.h>
void main()
{
    double x = 123828749.66;
    int y = x;
    printf("%d\n", y);
    printf("%lf\n", y);
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
59
What will be the final value of x in the following C code?
#include <stdio.h>
void main()
{
    int x = 5 * 9 / 3 + 9;
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
60
What will be the output of the following C code?
#include<stdio.h>
enum Ram
{
    a=1,b
};
enum Shyam
{
    c,d
};
int main()
{
    enum Shyam s1=c;
    enum Shyam s=a;
    enum Ram s2=d;
    printf("%d",s);
    printf("%d",s1);
    printf("%d",s2);
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board