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

61. Find the output void main ( ) { printf("%u",main)); }

  • Garbage value
  • Run time error
  • Printing starting address of function main
  • Infinite loop
Show Answer Report

62. Find the output void main () { show (5); } show (int x) { static int i=1; while (i++<5) { show (++x); printf("%d",x); }

  • 6 7 8 9
  • 9 8 7 6
  • 6 6 6 6
  • None of these
Show Answer Report

63. Find the output void main () { int pascal show (int); show (5); } pascal show (int x, int y) { printf ("%d %d", x,y); }

  • 0 5
  • 5 0
  • 0 0
  • Compilation error
Show Answer Report

64. A functions return type may not be

  • Double constant
  • An array
  • A pointer
  • A pointer to another pointer
Show Answer Report

65. Find the output void main () { int x=10; x=callme (x); printf("%d",x); } callme (int x) { int i=5; x=x/2-3; return x,i; }

  • 3
  • 5
  • Can't return more than one value
  • Function should have a return type
Show Answer Report

66. Find the output void main ( ) { int i =5; printf ("i=%d", i); show ( ); printf ("i=%d",i); } show ( ) { int i; i=1; return i; }

  • i=5 i=5
  • i=5 i=1
  • Function should have a return type
  • Multiple declarations of i
Show Answer Report

67. Find out the false statement

  • A program by default sends integer type parameters.
  • A function can be a part of an expression.
  • Size of a function can be measured using sozeof () operator.
  • A stack frame is created in memoy for each function call.
Show Answer Report

68. Find the output int x=5; { int *p; int *find( ); p=find (  ); printf("%d", *p); } int *find ( ) { int x=10; return &x; }

  • 10
  • 5
  • Garbage
  • None of these
Show Answer Report

69. Find the output int main (int x) { if (k<10) printf("%d ",main (k+1)); return k; }

  • 2 3 4 5 6 7 8 9 10
  • 10 9 8 7 6 5 4 3 2
  • Compilation error
  • None of thesde
Show Answer Report

70. Find the output void main ( ) { int i=1; while (i++<5) printf("%d", call (i)); } call (int i) { return --i; }

  • 1 2 3 4
  • 0 1 2 3
  • Function should return a value
  • 0 0 0 0
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test