Loading, please wait...

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

Search here for MCQs

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 

6. Choose the correct option about function

  • "main" is the name of default must and should Function.
  • main() is same as int main()
  • By default, return 0 is added as the last statement of a function without specific return type.
  • All of the above

7. Guess the output of the following code:

int main()
{

    void show()
    {
        printf("Tutorial Links");
    }

    show();
    
    return 0;
}
  • Compile time error
  • Tutorial Links
  • Run Time Error
  • None of the above

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

void m(int k)
    {
        printf("hi");
    }
    void m(double k)
    {
        printf("hello");
    }
    void main()
    {
        m(3);
    }
  • Compile time error
  • hi
  • hello
  • hi hello

9. It is necessary to declare the type of a function in the calling program if the function

  • Both B and C
  • Is not defined in the same file
  • Returns a non-integer value
  • None of the above

10. No of values function can return

  • 2
  • 1
  • 3
  • 0