Why I am getting characters more than the declared array in the code below when I input more than 10 characters? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 2

Why I am getting characters more than the declared array in the code below when I input more than 10 characters?

#include <stdio.h> int main() { char a[10]; gets(a); printf("You entered: "); puts(a); return 0; }

21st Sep 2019, 4:29 PM
Darshnik Deep
Darshnik Deep - avatar
0 ответов