Question: Hi please do all the problems that I assigned. And please write clean becuse I have hard time seeing. Please do not do half then
I need help with 9 number 9 continuous on next page
I need help with 9 e,f,g,h, and i. And I need help with 10 A. Number 10 continuous on next page.
And 10 B . aueshons 1-10 C13-277 Data structures and Algerithns Revi ew to Pointers and Dynamie Hemory Hanagement 1 What does a pointer variable store ? 2 Write the statements required toi declare a variable ot type double with a value of 2.71828, declare a pointer variable that can hold the addreas of a double, aasign the address of the double variable to the pointer variable, and print out the value of the double variable theu the use of the pointer variable. .What are the two legal operations that can be applied to pointer variables ? a. When is statio memory (atack memory) allocated/deallocated ? b. When is dynamie memory (heap memory) allocated/deallocated ? 5. The name of the dynamic memory management operator for a. dynamic memory allooation. b. dynamie memory deallocation 6. | what does the dynamie memory allocation operator return it insufficient memozy is available for the request ? 7. Write the statements required to: declare a pointer variable that can hold the address of a double, dynamically allocate memory hold a double and assign the address of this area to the pointer variable, store the value: 3.14159 in the to allocated memory area, print out the stored value, deallocate the memo ry 8 [write the statements required to: a variable of type float with a value of 3.14159, a pointer declare variable that can hold the address of a of the float variable to the pointer variable, and print out the value of the float variable thru the use of the pointer variable. float, assign the address 9 Given the decl a rat i ons : typedef int PT INT a, b, C int PT_INT x, y, z INTx, y. z Determine which of the following are VALID (are legal AND would produce a meaningful result or INVALID code s assume that any pointers already hold an address. Consider earh an INDEPENDENT problem segments. Do NOT
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
