There’s no solution to the equation
Answer:
The answer to this question is given below in the explanation section. However, the correct option is B. i.e a for loop.
Explanation:
The correct answer to this question is for-loop. Beause, in the for loop is written to perform a certain number of iterations or to iterate until a specific result is achieved.
for example, to calculate the average of 10 numbers, we use the for loop to iterate statements written in its body 10 times to calculate the average.
when the specific numbers of the iteration are reached it will get terminated.
for example
for (int i=0; i<=10; i++)
{
// perfrom average, code
}
this loop iterate 10 times or less, when it reached above the limit it gets stopped.
however, the other options are not correct, because an ordered data structure is like a list of order data, print function print something to the user or on screen. while an array is like a list of data of the same data type.
Answer:
A global variable can have the same name as a variable that is declared locally within the function.
Explanation:
In computer program, we refer to a global variable as that variable that comes with a global perspective and scope, ensuring its visibility throughout the program, except it is shadowed. The set of this kind of variable is referred to as global state or global environment. One feature of global environment is that it can have similar name as a variable declared locally within the function.