Consider the function prototype void strangeint a int b and
Consider the function prototype void strange(int a, int b); and the following declaration.
int alpha[10];
int beta[10];
Which of the following is a valid call to the function strange?
A.) strange(alpha[0], alpha[1]);
B.) strange(alpha, beta);
C.) strange(alpha[0], beta);
D.) strange(alpha, beta[0]);
Solution
Answer:
A.) strange(alpha[0], alpha[1]);
Because prototype contains only single int in parameter so u can pass only single integer.
![Consider the function prototype void strange(int a, int b); and the following declaration. int alpha[10]; int beta[10]; Which of the following is a valid call t Consider the function prototype void strange(int a, int b); and the following declaration. int alpha[10]; int beta[10]; Which of the following is a valid call t](/WebImages/5/consider-the-function-prototype-void-strangeint-a-int-b-and-982389-1761504397-0.webp)