Solution :
a). The two arrays that are used in parallel in order to store the identification of two numbers of 5 employees and their weekly gross payments is :
int id_array[5];
double gross_pay[5];
b). The loop that uses the arrays for printing the identification number and the weekly gross payment is given below :
for(int i=0; i<5; i++)
{
count <<id_array[i] <<" " << gross_pay[i] << end;
}
Information can be transferred and passed way easier.
Answer:
I don't know who advance the evolution who is it!
Answer:
zeroIt(&x);
Explanation:
The statement that sets the value stored in x to zero by invoking the function zerolt is given below
zeroIt(&x);
The zeroIt function is also given below for better understanding.
void zeroIt(int *x) {
*x = 0;
}
As seen, the function takes an argument with integer variable type, which is a pointer, denoted by the asterisk symbol (*x).
The ampersan sign (&x) is used to access the variable whose value can then be stored.