ExamVeda
Login
Home
1
What will be the output of the following C code?
#include <stdio.h>
static int x = 5;
void main()
{
    x = 9;
    {
        int x = 4;
    }
    printf("%d", x);
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
2
What will be the output of the following C code?
#include <stdio.h>
void m(int k)
{
    printf("hi");
}
void m(double k)
{
    printf("hello");
}
void main()
{
    m(3);
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
3
Automatic variables are allocated memory in . . . . . . . .
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
4
What will be the output of the following C code?
#include <stdio.h>
void f();
int main()
{
    #define max 10
    f();
    return 0;
}
void f()
{
    printf("%d\n", max * 10);
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
5
Which of the following is true for the static variable?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
6
What will be the data type returned for the following C function?
#include <stdio.h>
int func()
{
    return (double)(char)5.0;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
7
What will be the output of the following C code?
#include <stdio.h>
void main()
{
    static int x = 3;
    x++;
    if (x <= 5)
    {
        printf("hi");
        main();
    }
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
8
What will be the output of the following C code?
#include <stdio.h>
void main()
{
    int x = 3;
    {
        x = 4;
        printf("%d", x);
    }
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
9
Property which allows to produce different executable for different platforms in C is called?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
10
Which of the following file extensions are accepted with #include?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board