Question: Q 4 Write a program that does the following: i ) Declares and initializes three arrays as follows: int arr ] = { 0 ,
Q Write a program that does the following: i Declares and initializes three arrays as follows: int arr; double darr; char carr; ii Prints the address of the array and each of the three elements for each of the three different kinds of arrays arr &arr &arr &arr darr, &darr &darr &darr carr, &carr &carr &carr iii Prints an output in the following format:Address of the, integer array: FF Address of the first element : FF Address of the second element FF Address of the third element FFC The address of the int array is the same as the address of the first element. Address of the double array: FEE Address of the first element : FEE Address. of the second element : FEFO Address of the third element : FEF The address of the double array is the same as the address of the first element: Address of the char array: FEE Address of the first element : FEES Address of the second element : FEE Address of the third element : FEE The address of the char array is the same as the address of the first element
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
