need to make function that get string "One two three 456 seven Eight nine" and make it to "nine Eight seven 456 three two One"
its not the end of that code , but this code " ArrayTest[TempMin] = arr[TempMin];" doesnt worksCode:void function7(char *arr) { int i, TempMax, TempMin; char ArrayTest[80] = { ' ' }; for (i = 0; arr[i];++i); // calculate the length of arr TempMax = i-1; for (i; i >= 0; --i) { if (arr[i] == ' ' || ArrayTest[i]) { TempMin = i; for (TempMin;TempMin <= TempMax; ++TempMin) { ArrayTest[TempMin] = arr[TempMin]; } TempMax = i; } } }
someone can help me with writing that code?
i can use only stdio.h folder