+ 1
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 Answer
0
Never... Use... Gets... https://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1049157810&id=1043284351