¿"gets" ya no se usa? "gets" isn't used? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

¿"gets" ya no se usa? "gets" isn't used?

He escrito un código en C con la instrucción "gets" y me sale error. Acabo de descubrir que esa instrucción era válida antes del C89, pero ya en el C99 ya no era válida. ¿No deberían actualizar el tutorial? I have written a C program and it shows mw an error. The "gets" instruction was depreciated in C99? Must the tutorial updates?

15th Sep 2021, 4:56 PM
Manuel Rondón
Manuel Rondón - avatar
1 Answer
+ 2
Yeah gets is not standard function its removed from c / cpp may be in some older version compiler like turbo borland it will work but in moder Compiler i will give u warnings and error instead of this u can use fgets or getline in cpp
15th Sep 2021, 6:40 PM
A S Raghuvanshi
A S Raghuvanshi - avatar