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
- 2 functions
- 1 function
- 0 function
- n number of functions
- Function is a block of statements that perform some specific task.
- Function is the fundamental modular unit. A function is usually designed to perform a specific task.
- Function is a block of code that performs a specific task. It has a name and it is reusable.
- All of the above
int *m();
void main()
{
int k = m();
printf("%d", k);
}
int *m()
{
int a[2] = {5, 8};
return a;
}
- 8
- varies
- 5
- No output
- int sum(int a, int b) {return (a + b);}
- int sum(a, b) return (a + b);
- int sum(int a, int b) return (a + b);
- All of the above