Hello What is the output on no.1
Posted: Mon May 09, 2022 8:00 am
Hello
What is the output on no.1
1. Write statements to accomplish each of the following: (complete code is not required) a. Display (print) the value of the seventh element (as people count them) of character array f b. Input (scan) a value into index value 7 of a floating point array b c. Initialize an array G of integers so that each of its eight elements has the starting value 17 d. Copy array b into array a. Assume they are declared as int a(10), b[10]; 2. Write a function with the following prototype: void print_array (double data[ ], int n); When the function is called, it prints the array in an appropriate fashion on the screen.
What is the output on no.1
1. Write statements to accomplish each of the following: (complete code is not required) a. Display (print) the value of the seventh element (as people count them) of character array f b. Input (scan) a value into index value 7 of a floating point array b c. Initialize an array G of integers so that each of its eight elements has the starting value 17 d. Copy array b into array a. Assume they are declared as int a(10), b[10]; 2. Write a function with the following prototype: void print_array (double data[ ], int n); When the function is called, it prints the array in an appropriate fashion on the screen.