71. What will be the output of the following C code?
#include<stdio.h>
#define max 100
main()
{
#ifdef max
printf("hello");
}
#include<stdio.h>
#define max 100
main()
{
#ifdef max
printf("hello");
}
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);
}
#include<stdio.h>
#define hello 10
main()
{
#ifdef hello
#undef hello
#define hello 100
#else
#define hello 200
#endif
printf("%d",hello);
}
73. Which of the following is not a preprocessor directive?
74. The preprocessor directive which is used to remove the definition of an identifier which was previously defined with #define?
75. The function of __attribute__((packed)); can also be performed using . . . . . . . .
76. The preprocessor directive which checks whether a constant expression results in a zero or non-zero value . . . . . . . .
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);
}
#include<stdio.h>
void f()
{
#define sf 100
printf("%d",sf);
}
int main()
{
#define sf 99;
f();
printf("%d",sf);
}
78. What will be the output of the following C code?
#define HELLO(a) #a
main()
{
printf(HELLO(good morning));
}
#define HELLO(a) #a
main()
{
printf(HELLO(good morning));
}
79. The purpose of the preprocessor directive #error is that . . . . . . . .
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);
}
#include<stdio.h>
#define ram 10
main()
{
#ifdef ram
#define ram 20
#endif
printf("%d",ram);
}