int* a = new int(40);
int* b = new int(2);
int x = *a + *b; // x = 42
delete b;
delete a;
You cannot add elements to a fixed array in C or C++. If, however, the array is declared as a pointer to an array, you can add elements by allocating a new array, copying/adding elements as needed, reassigning the new array to the pointer, and deallocating the original array.
it is simple arithmetic. to solve, just add the numbers using the addition property and recieve the answer of 34
int x = 1, y = 2, z = 3; int f = x + y + z;
If you simply add numbers the answer is the sum of those numbers.
Just add the numbers, and divide the result by 3 (since there are 3 numbers).
The answer is 4.50. Simply add up all of the numbers arithmetically like you would for two plus two. To make sure the answer is correct, check your work using a calculator.
225 and if you mean both(all the numbers) it is 450
Using the additive property (+).
sum = a + b + c;
7 7/12 plus 3 8/9
The best method is to add the numbers, using arithmetic.
The answer is 76. Simply add up all of the numbers arithmetically like you would for two plus two. To make sure the answer is correct, check your work using a calculator.