0
Why error here?
#include <stdio.h> int main() { char a[5]; gets(a); printf ("char#: %s",a); return 0; }
7 Respostas
+ 4
the function gets() has been removed from C11 standard
+ 3
You can use fgets()
Try :
fgets(a, 5, stdin);
+ 1
https://stackoverflow.com/questions/34031514/implicit-declaration-of-gets
loot at this
you can use it your code works bit its deprecated
0
So what I should use
0
Thanks a lot.
0
Try puts(a) instead of printf