ExamVeda
Login
Home
61
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int x = -2;
    x = x >> 1;
    printf("%d\n", x);
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
62
What will be the output of the following C code?
main()
{
    enum resut {pass, fail};
    enum result s1,s2;
    s1=pass;
    s2=fail;
    printf("%d",s1);
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
63
What will be the output of the following C code snippet?
#include <stdio.h>
void main()
{
    unsigned int x = -5;
    printf("%d", x);
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
64
What will be the output of the following C code?
#include <stdio.h>
void main()
{
    int a = 5 * 3 + 2 - 4;
    printf("%d", a);
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
65
All keywords in C are in . . . . . . . .
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
66
What will be the output of the following C code?
#include <stdio.h>
void main()
{
    int k = 4;
    int *const p = &k;
    int r = 3;
    p = &r;
    printf("%d", p);
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
67
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int c = 2 ^ 3;
    printf("%d\n", c);
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
68
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int x = 1;
    int y =  x == 1 ? getchar(): 2;
    printf("%d\n", y);
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
69
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int y = 0;
    if (1 |(y = 1))
        printf("y is %d\n", y);
    else
        printf("%d\n", y);
 
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
70
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int y = 1;
    if (y & (y = 2))
        printf("true %d\n", y);
    else
        printf("false %d\n", y);

}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board