(10%) Determine
whether the syntax of the following code is correct or not. If it
is
correct, predict its output. If it is incorrect, point out the
mistake(s).
// *(a + i) == a[i]
#include <iostream>
using std::cout;
int main()
{
int a[] = { 1, 2, 3, 4, 5 };
int b[] = { 6, 7, 8, 9, 10 };
for (int i=0; i<5; ++i)
{
* (a + i) *= * (b + i);
cout << a[i];
}
return 0;
}