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

1
2
3
4
5
6
7
8
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;