The current selected programming
language is C. We emphasize the
submission of a fully working code
over partially correct but efficient
code, Once submitted, you cannot
review this problem again. You can
use printf() to debug your code. The
printff) may not work in case of
syntax/runtime error. The version of
GCC being used is 5.5.0
#include <stdion.h>
#include <string.h>
void pring(char *str) {
int sz = strlen(str);
char tmp[sz];
for (int i=0; i<sz; i++) {
int j=i, k=0;
while (s[j] != '\0') {
temp[k++]=str[j++];
}
j=0;
while (j<i) {
temp[k++]=str[j++];
}
}
}
Comments
Leave a comment