• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 1

gets funtion is not working in c language with linux software

string.h is included and warning

cstring
30th Oct 2018, 9:14 AM
Shobith Shobi
Shobith Shobi - avatar
1 Answer
+ 6
gets() is deprecated. Use fgets(). http://www.cplusplus.com/reference/cstdio/fgets/
30th Oct 2018, 9:23 AM
Hatsy Rei
Hatsy Rei - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
What to do after finishing Python Developer
3 Votes
IS POSSIBLE TO PRINT 1 TO 100 WITHOUT FOR LOOP
0 Votes
Slicing
3 Votes
Practice code
1 Votes
Différence in html
0 Votes
Is there a similar app like Sololearn?
1 Votes
Why cant i run the codes in testing and also cannot do the practice. It shows "error" all the time whenever i try
0 Votes
In html how do you get more than one html documents for more than 1 pages? I’m on iPhone / mobile
3 Votes
Do I need to get a PCA?
0 Votes
New member greeting
0 Votes