Function MCQs

223 questionsC-ProgramPage 10 of 25

Practice free Function 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 223 questions — no login required.

Question 82easy
C preprocessor is conceptually the first step during compilation.
Question 83easy
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    register const int i = 10;
    i = 11;
    printf("%d\n", i);
}
Question 84easy
What will be the output of the following C code?
#include <stdio.h>
#define foo(m, n) m * n = 10
int main()
{
    printf("in main\n");
}
Advertisement
Question 85easy
What will be the output of the following C code?
#include <stdio.h>
#define MIN 0);
#ifdef MIN
#define MAX 10
#endif
int main()
{
    printf("%d %d\n", MAX, MIN
    return 0;
}
Question 86easy
Which among the following is wrong for "register int a;"?
Question 87easy
What will be the output of the following C code?
#include <stdio.h>
void main()
{
    #define max 45
    max = 32;
    printf("%d", max);
}
Advertisement
Question 88easy
Array sizes are optional during array declaration by using . . . . . . . . keyword.
Question 89easy
What will be the output of the following C code?
#include <stdio.h>
int i;
int main()
{
    extern int i;
    if (i == 0)
        printf("scope rules\n");
}
Question 90easy
How is search done in #include and #include"somelibrary.h" normally or conventionally?
Function MCQs with Answers & Solutions — C-Program | GrabStudy