Question: #1 Chapter 7 Pointers (169 passing an array name to a pointer assigns the first memory location of the array to the inter varia Similarly,
#1 Chapter 7 Pointers (169 passing an array name to a pointer assigns the first memory location of the array to the inter varia Similarly, initializing a pointer an array name stores first address of the the array in the pointer. to You can use the const qualifier in conjunction with pointers to achieve a read-only argument while st ieving the pass by reference 1. Build a program that performs the following operations: Declares three pointer variables called iPtr of type int, cPtr of type char, and Float of type float Declares three new variables called iNumber of int type, fNumber of float type, and cCharacter of type signs the address of each nonpointer variable to the matching pointer variable Prints the value of each nonpointer variable Prints the value of each pointer variable Prints the address of each nonpointer variable Prints the address of each pointer variable 2. create a program that allows a user to select one of the following four menu options: Enter New Integer Value Print Pointer Address Print Integer Address Print Integer Value For this program, you need to create two variables: one integer data type and one pointer. Using indirection, assign any new integer value that the user enters through an appropriate pointer. 3. Create a dice rolling game. The game should allow a user to toss up to six at a time. Each toss of a die will be stored in a six-element integer array. The array is created in the main() function but passed to a new function called TossDie(). The TossDie() func- will take care of generating random numbers from one to six and assigning them to the appropriate array element number. 4. the program to use a different type of key system or algorithm. Consider using a user-defined key or a different character set
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
