Hi all.
While i was reading this tutorial i found some problems.It was in the capter with the arrays.I read it all and got to the last sourse code.I compiled it and when i tried to run it the compiler told me that the code is not ready.
But it didn't showed me any mistakes
Here's the code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
// arrays as parameters
#include <iostream>
usingnamespace std;
void printarray (int arg[], int length) {
for (int n=0; n<length; n++)
cout << arg[n] << " ";
cout << "\n";
}
int main ()
{
int firstarray[] = {5, 10, 15};
int secondarray[] = {2, 4, 6, 8, 10};
printarray (firstarray,3);
printarray (secondarray,5);
return 0;
}