ExamVeda
Login
Home
61
What will be the output of the following C code?
#include <stdio.h>
int *m();
void main()
{
    int *k = m();
    printf("hello ");
    printf("%d", k[0]);
}
int *m()
{
    int a[2] = {5, 8};
    return a;
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
62
What is #include directive?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
63
What is #include <stdio.h>?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
64
If storage class is not specified for a local variable, then the default class will be auto.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
65
What will be the output of the following C code?
#include <stdio.h>
int x = 5;
void main()
{
    int x = 3;
    m();
    printf("%d", x);
}
void m()
{
    x = 8;
    n();
}
void n()
{
    printf("%d", x);
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
66
What will be the output of the following C code (without linking the source file in which ary1 is defined)?
#include <stdio.h>
int main()
{
    extern ary1[];
    printf("scope rules\n");
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
67
What will be the output of the following C code?
#include <stdio.h>
static int x;
void main()
{
    int x;
    printf("x is %d", x);
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
68
Which of the following is a correct format for declaration of function?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
69
Automatic variables are allocated space in the form of a . . . . . . . .
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
70
The value obtained in the function is given back to main by using . . . . . . . . keyword.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board