Объясните смысл и назначение строчки - C#

Узнай цену своей работы

Формулировка задачи:

class Program
    {
        static void Main(string[] args)
        {
            int ks, n = 0;
          
            string[] i = new string[n];
            Console.Write("Введите размер массива букв : ");
 
            ks = Convert.ToInt32(Console.ReadLine());
            i = new string[ks];

            for (int k = 0; k < ks; k++)
            {
                Console.Write("Введите " + (k + 1) + " букву массива : ");
                i[k] = Console.ReadLine();
             
            }
            Console.WriteLine("Не обработанный массив");
            for (int k = 0; k < i.Length; k++)
                Console.WriteLine(i[k] + " ");

                int x,j;
           
            for (x = 1; x < i.Length; x++)
               
            {
 
                string elem = i[x];
                int pos = 0;
                while (String.Compare(i[x], i[pos]) > 0) pos++;
                for (j = x - 1; j >= pos; j--) i[j + 1] = i[j];\\ВОТ ДАННАЯ СТРОКА!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
                i[pos] = elem;
            }

            Console.WriteLine("Обработанный массив");
 
                for (x = 0; x < i.Length; x++)
                Console.WriteLine(i[x] + "");
            Console.ReadKey();
        }
    }
for (j = x - 1; j >= pos; j--) i[j + 1] = i[j]; Вот данная строка

Решение задачи: «Объясните смысл и назначение строчки»

textual
Листинг программы
for (j = x - 1; j >= pos; j--)

Оцени полезность:

8   голосов , оценка 4 из 5
Похожие ответы