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

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site