Loading, please wait...

Functions in C Programming MCQ (Multiple Choice Questions And Answers)

Search here for MCQs

In this MCQ Quiz you get all most asked multiple choice questions and answers related to Functions in C Programmings onyl.

Functions in C Programming MCQ (Multiple Choice Questions And Answers)

Are you preparing for the next job interviews? If yes, trust me this post will help you also we'll suggest you check out a big collection for Programming Full Forms that may help you in your interview:

List of Programming Full Forms 

1. Point out the illegal function declaration

  • int 2bhk(int*, int []);
  • int 1bhk(int a);
  • int 1bhk(int);
  • All of the above

2. Which keyword is used to give back the value

  • static
  • void
  • return
  • const

3. if we run this code so what will be the output:

#include <stdio.h>
    void foo()
    {
        return 1;
    }
    void main()
    {
        int x = 0;
        x = foo();
        printf("%d", x);
    }
  • Compile time error
  • 1
  • 0
  • Runtime error

4. what will be the output of the following code?

#include<stdio.h>

int main()
{
    printf("TutorialLinks");
    main();
    return 0;
}
  • 32767 times
  • Till stack overflows
  • 34567 times
  • Compile time error

5. Default return type of function defintion

  • void
  • static
  • int
  • float