Machine-translated by Google. Questions are authored in English.
Top

Discussion

Functions can be called either by value or reference

  • A.True
  • B.False

Answer: A

Correct answer: True

C passes everything by value, but passing a pointer by value gives the function the caller’s address and so the effect of call by reference. Both styles are therefore available, which is why arrays - whose names decay to pointers - behave as though passed by reference.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.