Write the slice of code necessary to do each of the following: 1. Declare an arr
ID: 3535124 • Letter: W
Question
Write the slice of code necessary to do each of the following:
1. Declare an array of type int called mults_3 with 10 elements. Use a for loop to initialize the elements of the array to the values: 3, 6, 9, . . ., 30
2. Declare an array of type char called stinfo and initialize it to the value "C is an interesting language". Declare a pointer variable stPtr for stinfo. Assign the pointer to the starting address of stinfo.
Write code for each of the following:
1. Create a double-precision floating-point array called daily_expenses which will hold 7 elements. Write the for loop statements necessary to read in 7 values from the keyboard and store them in the daily_expenses array.
2. Write statements necessary to define a file pointer,fpOut, and use the pointer to open an existing sequential file called ″PersonnelData.txt″for writing additional records.
Explanation / Answer
.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.