31.
Comment on the following 2 C programs.
#include <stdio.h> //Program 1
int main()
{
    int a;
    int b;
    int c;
}

#include <stdio.h> //Program 2
int main()
{
    int a;
    {
        int b;
    }
    {
        int c;
    }
}

33.
#include <somefile.h> are . . . . . . . . files and #include "somefile.h" . . . . . . . . files.

35.
What will be the output of the following C code?
#include <stdio.h>
#define foo(m, n) m ## n
void myfunc();
int main()
{
    myfunc();
}
void myfunc()
{
    printf("%d\n", foo(2, 3));
}

39.
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;
}

40.
Which of the following function declaration is illegal?

double func();
int main(){}
double func(){}

double func(){};
int main(){}

int main()
{
    double func();
}
double func(){//statements}

Read More Section(Function)

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