ExamVeda
Login
Home
91
What will be the output of the following C code?
#include <stdio.h>
register int x;
void main()
{
    printf("%d", x);
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
92
Functions can return structure in C?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
93
What is the advantage of #define over const?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
94
What is the default return type if it is not specified in function definition?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
95
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    void foo();
    void f()
    {
        foo();
    }
    f();
}
void foo()
{
    printf("2 ");
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
96
What will be the output of the following C code?
#include <stdio.h>
void main()
{
    m();
    printf("%d", x);
}
int x;
void m()
{
    x = 4;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
97
Functions in C are always . . . . . . . .
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
98
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    register static int i = 10;
    i = 11;
    printf("%d\n", i);
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
99
What will be the output of the following C code?
#include <stdio.h>
#include "printf"
void main()
{
    printf("hello");
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
100
Can variable i be accessed by functions in another source file?
#include <stdio.h>
int i;
int main()
{
    printf("%d\n", i);
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board