Multiple choice

There are certain rules that must be followed during function calls, which are listed below. Read them carefully & find out which one of them is incorrect.

  1. Sequences of actual & formal parameters may differ.

  2. Numbers of actual & formal parameters must be the same.

  3. Types of actual & formal parameters must be the same.

  4. None of these

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

During function calls, the sequence (order) of actual and formal parameters must match exactly. You cannot rearrange the order of arguments - the first actual parameter maps to the first formal parameter, the second to the second, and so on. This is why option A is the incorrect statement.