New course! Every coder should learn Generative AI!
Try a free lesson+ 2
I really didn't understand the gets() part what's it's function??
2 Answers
+ 2
gets() function is used to scan or read a line of text from a standard input (stdin) device and store it in the String variable.
+ 2
Gets a string from the user.