ExamVeda
Login
Home
71
What will be the output of the following C code?
#include<stdio.h>
#define max 100
main()
{
    #ifdef max
    printf("hello");
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
72
What will be the output of the following C code?
#include<stdio.h>
#define hello 10
main()
{
    #ifdef hello
    #undef hello
    #define hello 100
    #else
    #define hello 200
    #endif
    printf("%d",hello);
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
73
Which of the following is not a preprocessor directive?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
74
The preprocessor directive which is used to remove the definition of an identifier which was previously defined with #define?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
75
The function of __attribute__((packed)); can also be performed using . . . . . . . .
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
76
The preprocessor directive which checks whether a constant expression results in a zero or non-zero value . . . . . . . .
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
77
What will be the output of the following C code?
#include<stdio.h>
void f()
{
    #define sf 100
    printf("%d",sf);
}
int main()
{
    #define sf 99;
    f();
    printf("%d",sf);
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
78
What will be the output of the following C code?
#define HELLO(a) #a
main()
{
    printf(HELLO(good        morning)); 
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
79
The purpose of the preprocessor directive #error is that . . . . . . . .
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
80
What will be the output of the following C code?
#include<stdio.h>
#define ram 10
main()
{
    #ifdef ram
    #define ram 20
    #endif
    printf("%d",ram);
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board