MCQ Practice Single Best Answer Topic: Function in C Language

Q Which of the following is true about function arguments in C language?

Question ID
#7184
Subchapter
Function in C Language
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A Function arguments are always passed by value.
  • B Function arguments are always passed by reference.
  • C Function arguments can be passed by value or by reference.
  • D Function arguments can be passed by value, bot not by reference
Correct Answer: C

Explanation

Answer: c. Function arguments can be passed by value or by reference.

Explanation: In C language, function arguments can be passed by value or by reference. When an argument is passed by value, a copy of the argument value is passed to the function. When an argument is passed by reference, a reference to the argument variable is passed to the function.

Share This Question

Share this MCQ with your friends or study group.