ExamVeda
Login
Home
31
C99 standard guarantees uniqueness of . . . . . . . . characters for internal names.
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>
void main()
{
    int k = 0;
    double b = k++ + ++k + k--;
    printf("%d", k);
}
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 k = 8;
    int m = 7;
    k < m ? k = k + 1 : m = m + 1;
    printf("%d", k);
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
34
Which of the following is not a valid variable name declaration?
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>
void main()
{
    int a = 3;
    int b = ++a + a++ + --a;
    printf("Value of b is %d", b);
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
36
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int i = 0;
    int x = i++, y = ++i;
    printf("%d % d\n", x, y);
    return 0;
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
37
Which is valid C expression?
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 a = 1, b = 2, c = 3, d = 4, e;
    e = c + d = b * a;
    printf("%d, %d\n", e, d);
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
39
While swapping 2 numbers what precautions to be taken care?
b = (b / a);
a = a * b;
b = a / b;
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
40
What is the problem in the following variable declaration?
float 3Bedroom-Hall-Kitchen?;
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board