Question: #include main ( ) { int arrayInt [ ] = { 1 2 , 3 , 1 , 0 , 6 , 4 1 ,

#include
main(){
int arrayInt[]={12,3,1,0,6,41,21,9,16,17};
int i, temp, count, stat;
stat =0;
while(stat ==0){
stat =1;
for(i =0; i<2; i++){
if( arrayInt[i]> arrayInt[i+1]){
stat =0;
temp = arrayInt[i];
arrayInt[i]= arrayInt[i+1];
arrayInt[i+1]= temp;}}}
for(i =0; i <=9; i++)
printf("%d ", arrayInt[i]);
printf("
");}

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!