ExamVeda
Login
Home
21
Which among the following is the correct syntax to declare a static variable register?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
22
The below two lines are equivalent to . . . . . . . .
#define C_IO_HEADER <stdio.h>
#include C_IO_HEADER
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
23
Which part of the program address space is p stored in the following C code?
#include <stdio.h>
int *p;
int main()
{
    int i = 0;
    p = &i;
    return 0;
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
24
What will be the output of the following C code?
#include <stdio.h>
void main()
{
    register int x = 0;
    if (x < 2)
    {
        x++;
        main();
    }
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
25
When compiler accepts the request to use the variable as a register?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
26
What will be the output of the following C code?
#include <stdio.h>
void f();
int main()
{
    #define foo(x, y) x / y + x
    f();
}
void f()
{
    printf("%d\n", foo(-3, 3));
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
27
What will be the output of the following C code?
#include <stdio.h>
void main()
{
    register int x;
    printf("%d", x);
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
28
What is the return-type of the function sqrt()?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
29
Can function definition be present in header files?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
30
What will be the output of the following C code?
#include <stdio.h>
double i;
int main()
{
   printf("%g\n",i);
   return 0;
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board