C Functions Questions and Answers

Take Exam

C Functions Questions with Answers provide an in-depth look at one of the most fundamental concepts in C programming. Understanding how to define, call, and manage user-defined and library functions is key to mastering structured programming. These C programming MCQs are widely used in technical interviews and coding tests conducted by companies like TCS, Wipro, and Infosys. Each question includes explanations to help you grasp parameter passing, recursion, return types, and scope. Practicing programming questions with answers strengthens your coding logic and prepares you for real-world software challenges. Download C programming MCQ PDFs and practice online to enhance your technical aptitude efficiently.

C Functions

Showing 10 of 151 questions

91. Find the output void main ( ) { bbsr ( ) { printf("bbsr"); ctc ( ) { printf("ctc"); } } printf("puri'); }

  • puri
  • bbsrctcpuri
  • bbsrctc
  • Compilation error
Show Answer Report

92. Which header file must be included to work with dynamic function variables?

  • stdio.h
  • stdarc.h
  • stdarg.h
  • stddyn.c
Show Answer Report

93. A function type is said to be derived from its return type and if its return type is T, The function type is sometime called

  • function returing T
  • Function type derivation'
  • Function prototype
  • None
Show Answer Report

94. Parameters are used

  • To return values from the called function
  • to send values from the calling function.
  • To specify the data type of the return value.
  • Both options a & b.
Show Answer Report

95. Find the output void main ( ) { int a=5; a=find (a+=find (a++); printf("%d",a); } int find (int a) { return ++a; }

  • 12
  • 13
  • 15
  • None of these
Show Answer Report

96. Find the output. void main () { int i=65536; if (i) callme ( ); else callyou ( ); } callme ( ) { printf("Bye"); } callyou ( ) { printf ("welcome"); }

  • Bye
  • Welcome
  • Error, integer constant out of bound
  • None of these
Show Answer Report

97. Find the output void main ( ) { int a=4, b=5; printit (a,b); } printit  (int b, int a) { printf("%d %d", a, b); { int a=0; int b=1; printf("%d %d",a,b); } }

  • 4 5 0 1
  • 5 4 0 1
  • 5 5 0 0
  • None of these
Show Answer Report

98. What is the difference between writing prototype inside a function and outside a function?

  • The prototype declared above main has more priority than inside the main.
  • The prototype declared inside the main has more priority than above the main.
  • The prototype define inside the main then call is only from main() method.
  • None of these
Show Answer Report

99. Consider the printf statement used as below: printf("%d %d", f1 ( ), f2 ( ); /*Assume f1 and f2 as functions returning int*/ Then the order in which the functions f1 and f2 are called is :

  • Left to right.
  • Right to left
  • Dependent on compiler/implementation
  • None of these
Show Answer Report

100. ANSI C supports three kinds of function, such as user defined function, standard library function and

  • System call function
  • Derived function
  • Inter service routines
  • None of these
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test