Question: WS 1 7 . 1 . Mystery Array Change Consider the following program in C: #include #include #define SIZE 6 int main ( void )

WS17.1. Mystery Array Change
Consider the following program in C:
#include #include #define SIZE 6 int main( void ){ int data[]={5,23,2,-4,7,12}; int indexL =0; int indexR = SIZE -1; int temp; while( indexL < indexR ){ temp = data[ indexL ]; data[ indexL ]= data[ indexR ]; data[ indexR ]= temp; indexL++; indexR--; } printf( "Process has completed.
"); return 0; }
What will be the value of the elements of array data when the code above reaches the printf statemen

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 Programming Questions!