1. Engineering
  2. Computer Science
  3. m write statements to do the following i declare an...

Question: m write statements to do the following i declare an...

Question details

(m) Write statements to do the following i. Declare an int variable count, ask the user to input its value, and read in the value. ii. Define a pointer type PtrType for pointer variables that contain pointers to int variables Declare p1 to be a pointer to a variable of type int. iv. Dynamically allocate an array of count integers and store its address in p1. V. Initialise the elements of the array that pl is pointing to, so that each element has vi. Display the values of the array elements-each element on a new line. the value of its position in the array (starting at position 0 as the first position) 25 vi. Free the memory allocated to the array that p1 is pointing to
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution