ExamVeda
Login
Home
81
The pragma . . . . . . . . is used to remove an identifier completely from a program.
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
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
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
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);
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
84
What will be the output of the following C code?
#define hello(c) #c
main()
{
    printf(hello(i,am));
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
85
Which of the following attributes is used to specify that the minimum required memory to be used to represent the types?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
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");
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
87
The correct syntax of the attribute packed is . . . . . . . .
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
88
What will be the output of the following C code?
#define hello(c,d) #c #d
main()
{
    printf(hello(i,"am"));
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
89
What will be the output of the following C code?
#define display(a) #a
main()
{
    printf(display("56#7"));
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
90
What will be the output of the following C code?
#include<stdio.h>
#pragma GCC poison printf
main()
{
    printf("example");
    return 0;
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board