What is the output of the following code? void func(int x[ ]) { x[0] = x[0] * 3;
ID: 3544913 • Letter: W
Question
What is the output of the following code?
void func(int x[ ])
{
x[0] = x[0] * 3;
x[1[ = x[1] * 3;
x[2] = x[2] * 3;
}
Int main ()
{
int x[ ] = {1, 2, 3};
func(x);
cout << x[0] <<
What is the output of the following code?
void func(int x[ ])
{
x[0] = x[0] * 3;
x[1[ = x[1] * 3;
x[2] = x[2] * 3;
}
Int main ()
{
int x[ ] = {1, 2, 3};
func(x);
cout << x[0] <<
Explanation / Answer
Option C is the correct answer.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.