C Tutorial/printf scanf/scanf length

Материал из C\C++ эксперт
Перейти к: навигация, поиск

Scanf up to 79 chars into str

<source lang="cpp">#include <stdio.h>

 int main(void)
 {
   char str[80], str2[80];
   int i;
   scanf("%79s", str);
   return 0;
 }</source>