printf Enter number of string which you want to sort scanf stroka for

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
printf("Enter number of string which you want to sort\n");
scanf("%d",&stroka);
for(i=stroka;;){
for(j=0;j<stolb-1;j++){
if(*(mas+i*stolb+j)>*(mas+i*stolb+(j+1))){
temp=*(mas+i*stolb+j);
*(mas+i*stolb+j)=*(mas+i*stolb+(j+1));
*(mas+i*stolb+(j+1))=temp;
}
}
break;
}