Rotate An Array Left | C Programming Example

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

thank you so much, I had been suffering with this whole day. very clear.

IusupovAlimzhan
Автор

hey can you help me to rotate 2 character of each word of a string with spaces?

hashirkhan
Автор

Nice 🙃 :
// the same solution in 1 function :
void retate(int *array, int length, int go_left){
for(int i = 0; i < go_left; i++){
int temp = array[0];
for(int j = 0; j < length-1; j++){
array[j] = array[j+1];
}
array[length-1] = temp;
}
}

justcurious