Question: In Eclipse, create a new C project named login _lab02_t01. In the Source Folder (src) create the cubes_01.c source file and copy and paste the

  1. In Eclipse, create a new C project named login_lab02_t01. In the Source Folder (src) create the "cubes_01.c" source file and copy and paste the following code file cubes_01.txt into it. Compile the project and make sure it runs correctly.

    1. You can walk through any of the the code line by line.

    2. You can set a breakpoint in the program and execute the program from the beginning to the breakpoint.

    3. You can show the contents of the loop index "i", and of the "values[i]" and "cubes[i]" arrays as you step through the code.

cubes_01.c:

#include  #include  #define ARR_SIZE 12 int main(int argc, char *argv[]) { //============================== setbuf(stdout, NULL); // turns standard output buffering off int i; // Loop counter/index. int values [ARR_SIZE]; // Integer Array of size 10 long int cubes[ARR_SIZE]; // Integer Array of size 10. // Populate the "values" array with consecutive integers // [1,2,3, ..., 10] for (i=0; i                                            

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!