Answer to Question #86665 in C++ for Justin Ing

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("\n\n");

system("pause");
return;
}
1
Expert's answer
2019-03-20T01:46:00-0400
Dear Justin Ing, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS