ExamVeda
Login
Home
11
Which variable has the longest scope in the following C code?
#include <stdio.h>
int b;
int main()
{
    int c;
    return 0;
}
int a;
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
12
Which of the following sequences are unaccepted in C language?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
13
Comment on the output of the following C code.
#include <stdio.h>
int main()
{
    int i;
    for (i = 0;i < 5; i++)
    int a = i;
    printf("%d", a);
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
14
What will be the output of the following C code?
#include <stdio.h>
void foo();
int main()
{
    void foo(int);
    foo();
    return 0;
}
void foo()
{
    printf("2 ");
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
15
What will be the output of the following C code?
#include <stdio.h>
int x = 5;
void main()
{
    int x = 3;
    printf("%d", x);
    {
        int x = 4;
    }
    printf("%d", x);
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
16
What will be the output of the following C code?
#include <stdio.h>
#define MIN 0
#if defined(MIN) - (!defined(MAX))
#define MAX 10
#endif
int main()
{
    printf("%d %d\n", MAX, MIN);
    return 0;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
17
The preprocessor provides the ability for . . . . . . . .
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
18
What will be the output of the following C code?
#include <stdio.h>
void main()
{
    static double x;
    int x;
    printf("x is %d", x);
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
19
Which of the following operation is not possible in a register variable?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
20
Which of the following Macro substitution are accepted in C?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board