In c++Show the contents of the array X after the execution of the following program 4 #include <iostream> int main() int x[10], i ; for( i-5; i <= 9 ; i++ ) x[ i ] – i + 2; x[ 3 ] 18; x[ 2 ] = x[ 3 ] ; x[ 4 1 – 26 x[ 1 ] x[ 4 ]- *[ 8 ]; x[ 0 ] = x[ 6 l x[ 1 ] x[ 0 ] * x[ 5 ]; i-6; while ( i > 5) ( if(x[ i ] > x[ i -1 ] x[ i] – *[ i -1 ] ; else x[ i] 22; i-i-1 Show transcribed image text Show the contents of the array X after the execution of the following program 4 #include int main() int x[10], i ; for( i-5; i 5) ( if(x[ i ] > x[ i -1 ] x[ i] – *[ i -1 ] ; else x[ i] 22; i-i-1
Expert Answer
Answer to Show the contents of the array X after the execution of the following program 4 #include int main() int x[10], i ; for( …