распечатать часть строки c
int length = 5;
printf("%*.*s", length, length, "hello there");
Helpful Hummingbird
int length = 5;
printf("%*.*s", length, length, "hello there");