1.7k views
0 votes
It is ________ to pass an argument to a function that contains an individual array element, such as numbers[3].

A) illegal in C++
B) legal in C++
C) not recommended by the ANSI committee
D) not good programming practice
E) None of these

User Bismo
by
6.2k points

1 Answer

5 votes

Answer:

The answer is "option B".

Step-by-step explanation:

In the C++ programming language, it is legal to pass a parameter in the method that includes an individual array element. where an array is a collection of homogeneous (similar types of) elements. and other options are not correct that can be defined as:

  • In option, a Passing argument in a function is not illegal in c++.
  • In option c, It is recommended by the ANSI committee.
  • In option d, It is good for practice in coding.
User ILLIA DEREVIANKO
by
6.5k points