Question: In C Q10 Write a program that does the following: i)Declares and initializes three arrays as follows int arr]-{0, 1,2); double darrl] 1.0, 2.0, 3.0;
In C

Q10 Write a program that does the following: i)Declares and initializes three arrays as follows int arr]-{0, 1,2); double darrl] 1.0, 2.0, 3.0; char carr[]-{' I ','2','3'); Prints the address of the array and each of the three elements for each of the three different kinds of arrays (arr, &arr[O]), &arr[1]), &arr[2]), darr, &darr[O]), &darr[1]), &darr[2]), carr, &carr[O]), &carr[1]), &carr[2]) ii) ii Prints an output in the following format Address of the integer array: 0060FF04 Address of the first element: 0060FF04 Address of the second element 0060FF08 Address of the third element The address of the int array is the same as the address of the first element. : 0060FFOC Address of the double array: 0060FEE8 Address of the first ddress of the second element0060FEFO Address of the third element The address of the double array is the same as the address of the first element. element :0060FEE8 : 0060FEF8 Address of the char array: 0060FEES Address of the first element Address of the second element 0060FEE6 Address of the third element The address of the char array is the same as the address of the first element : 0060F EES : 0060FEE7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
