[solved] – Question 86665
c[0] = 11
c[1] = 22
c[2] = 33
c[3] = 44
c[4] = 55
Press any key to continue . . .
*/
#include <iostream>
using namespace std;
void main()
{
int a[5] = {1, 2, 3, 4, 5};
int b[5] = {10, 20, 30, 40, 50};
int c[5];
// now we meant to add a & b and put result in c
c = a + b;// is this allowed? if not what is the alternative
for(int i = 1; i <= 5; i++)
printf(“nc[“%i”] = %i”, i, c[i]);
printf(“nn”);
system(“pause”);
return;
}
Expert Answer
OR

