+ 3
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; }
1 Resposta
#include <stdio.h> int main() { char a[10]; gets(a); printf("You entered: "); puts(a); return 0; }