81. The pragma . . . . . . . . is used to remove an identifier completely from a program.
82. What will be the output of the following C code if the value of 'p' is 10 and that of 'q' is 15?
#include<stdio.h>
int main()
{
int p,q;
printf("Enter two numbers\n");
scanf("%d",&p);
scanf("%d",&q);
#if(4<2)
printf("%d",p);
#elif(2>-1)
printf("%d",q);
#else
printf("bye");
#endif
}
#include<stdio.h>
int main()
{
int p,q;
printf("Enter two numbers\n");
scanf("%d",&p);
scanf("%d",&q);
#if(4<2)
printf("%d",p);
#elif(2>-1)
printf("%d",q);
#else
printf("bye");
#endif
}
83. What will be the output of the following C code?
#include <stdio.h>
#define p( n ) printf( "t" #n " = %d", t##n )
int t3=10;
int main()
{
p(3);
}
#include <stdio.h>
#define p( n ) printf( "t" #n " = %d", t##n )
int t3=10;
int main()
{
p(3);
}
84. What will be the output of the following C code?
#define hello(c) #c
main()
{
printf(hello(i,am));
}
#define hello(c) #c
main()
{
printf(hello(i,am));
}
85. Which of the following attributes is used to specify that the minimum required memory to be used to represent the types?
86. What will be the output of the following C code?
#include<stdio.h>
#define ram 557
int main()
{
#ifndef ram
printf("yes");
#endif
printf("no");
}
#include<stdio.h>
#define ram 557
int main()
{
#ifndef ram
printf("yes");
#endif
printf("no");
}
87. The correct syntax of the attribute packed is . . . . . . . .
88. What will be the output of the following C code?
#define hello(c,d) #c #d
main()
{
printf(hello(i,"am"));
}
#define hello(c,d) #c #d
main()
{
printf(hello(i,"am"));
}
89. What will be the output of the following C code?
#define display(a) #a
main()
{
printf(display("56#7"));
}
#define display(a) #a
main()
{
printf(display("56#7"));
}
90. What will be the output of the following C code?
#include<stdio.h>
#pragma GCC poison printf
main()
{
printf("example");
return 0;
}
#include<stdio.h>
#pragma GCC poison printf
main()
{
printf("example");
return 0;
}