Question: Write a complete one C++ program that performs the following task: a. A user-defined function to find all the odd numbers between X and Y

Write a complete one C++ program that performs the following task: a. A user-defined function to find all the odd numbers between X and Y both inclusive). Where X = last 2-digits of your registration number, while Y=X+25. b. The odd numbers identified should be stored in an array of suitable type and size. c. Display the contents of array (preferable using a function). d. Assume that the starting address of above declared array is 0x01202 where Z is the last 3-digits of your registration number. Store this address in a pointer variable named as ptr_prime. Increment the ptr_prime by 1. What would be the address pointed by ptr_prime? What would be the value pointed by ptr_prime? . Write a complete one C++ program that performs the following task: a. A user-defined function to find all the odd numbers between X and Y both inclusive). Where X = last 2-digits of your registration number, while Y=X+25. b. The odd numbers identified should be stored in an array of suitable type and size. c. Display the contents of array (preferable using a function). d. Assume that the starting address of above declared array is 0x01202 where Z is the last 3-digits of your registration number. Store this address in a pointer variable named as ptr_prime. Increment the ptr_prime by 1. What would be the address pointed by ptr_prime? What would be the value pointed by ptr_prime
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
