усеченный массив символов, когда он был передан по ссылке в функцию в C - PullRequest
0 голосов
/ 18 июня 2020
• 1000 * Ввод: я люблю себя. Вывод: я люблю
`#include<stdio.h>
#include <stdlib.h>
char line[10000];
//Read text
void readtext(char str[10000]){
    fgets (str, sizeof(str), stdin); 
}
int main(void){
readtext(line); 
printf("%s\n",line);                
}`
...