ExamVeda
Login
Home
31
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;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
32
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int x = 2, y = 2;
    float f = y + x /= x / y;
    printf("%d %f\n", x, f);
    return 0;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
33
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);
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
34
What is short int in C programming?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
35
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int a = 10, b = 5, c = 3;
    b != !a;
    c = !!a;
    printf("%d\t%d", b, c);
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
36
Which of the following is not a valid variable name declaration?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
37
What will be the final value of d in the following C code?
#include <stdio.h>
int main()
{
    int a = 10, b = 5, c = 5;
    int d;
    d = b + c == a;
    printf("%d", d);
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
38
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;
 }
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
39
Which of the following option is the correct representation of the following C statement?
e = a * b + c / d * f;
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
40
Point out the error( if any) in the following code.
#include<stdio.h>
enum India
{
    a,b,c
};
enum India g;
main()
{
    g++;
    printf("%d",g);
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board