2.
What will be the output of the following C code?
#include <stdio.h>
#define COLD
int main()
{
    #ifdef COLD
    printf("COLD\t");
    #undef COLD
    #endif
    #ifdef COLD
    printf("HOT\t");
    #endif
}

4.
Which directory the compiler first looks for the file when using #include?

5.
What will be the output of the following C code?
#include <stdio.h>
#define foo(x, y) x / y + x
int main()
{
    int i = -6, j = 3;
    printf("%d\n",foo(i + j, 3));
    return 0;
}

9.
What will be the output of the following C code?
#include <stdio.h>
void foo();
int main()
{
    void foo(int);
    foo(1);
    return 0;
}
void foo(int i)
{
    printf("2 ");
}

Read More Section(Function)

Each Section contains maximum 100 MCQs question on Function. To get more questions visit other sections.