Page 1 of 1

5. Write a C program to do the following: (20 pts, 4, 8, 8) (1) Declare a one-dimensional floating-point array, x, of le

Posted: Mon May 09, 2022 6:19 am
by answerhappygod
5 Write A C Program To Do The Following 20 Pts 4 8 8 1 Declare A One Dimensional Floating Point Array X Of Le 1
5 Write A C Program To Do The Following 20 Pts 4 8 8 1 Declare A One Dimensional Floating Point Array X Of Le 1 (33.41 KiB) Viewed 23 times
5. Write a C program to do the following: (20 pts, 4, 8, 8) (1) Declare a one-dimensional floating-point array, x, of length 10 using dynamic storage. (2) Take a user-input integer from console as n, and assign each x as (i + 1).n (3) Print the last 5 elements in x to console using the following format and then free the memory of x: "The 6th element of x is ..." “The 7th element of x is ..." “The 8th element of x is ...” "The 9th element of x is ..." “The 10th element of x is ..."