C Preprocessor MCQs

93 questionsC-ProgramPage 11 of 11

Practice free C Preprocessor multiple-choice questions with instant answer feedback and step-by-step solutions. Click an option to check yourself, reveal the full explanation, and work through all 93 questions — no login required.

Question 91easy
Which of the following is a stringizing operator?
Question 92easy
What will be the output of the following C code?
#include <stdio.h>
#define hello( n ) printf( "a" #n "= %d", a##n )
int a3=3;
int main()
{
    #ifdef a3
       hello(3);
   #else
       printf("sorry");
   #endif
}
Question 93easy
What will be the output of the following C code?
#define sqr(x) x*x
main()
{
    int a1;
    a1=25/sqr(5);
    printf("%d",a1);
}