Question: Hello, this is for programming in C++, I really need help with the questions below. Thank you so very very much. 10. Given the following
10. Given the following declarations and assignmenta, write the one line of C++ code that could be used to perform each of the following tasks. Do not re-declare any variables in your answer. (3 points each) double *num; int points) (5, 8, 4, 9, 6) intxpoints char name new char [50] (a) Allocate memory for a double, and store its address in num. (b) Decrement the value pointed to by num by 1 (c) Print out the address where the first element of array points is stored. (d) Print out the third integer pointed to by x (i.e., the 4) using the address in x. You may not use brackets in your answer. (e) Delete all of the characters pointed to by name
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
