answersLogoWhite

0


Best Answer

Nothing, it is a security hole. Use 'fgets' instead.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the use of gets function in c language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What use getch function in c language?

Gets one character (or keystroke) without buffering or echoing; beware: getch is not part of the standard library.


Why you use 'integer' before function in C language?

To specify the return-type of the function.


What function is used to perform exponentiation in C language?

You can use the pow() function in math.h.


Why you use else function in c language?

You cannot have a function named else, because it is a reserved word.


How you can convert from string to int in C language?

Use the atoi() or atol() function.


What is the differnce between ordinary function and template function of c language?

The c language does not have template functions. That is a c++ thing.


Why you are using clrscr in c language?

Function 'clrscr' is not part of the C language. Or the standard libraries. It is MS-DOS specific function, use the help for details (clrscr means clear the screen).


How do you use cosine in c language?

Include the header file math.h and use the function acos(d)


Why use setcolor function in c graphics?

C language doesn't say anything about graphics, it is platform-dependent.


How do you createe a file using c language?

Use function open or creat or fopen.


How can you make a file in c language read only?

In UNIX: use function chmod


Call by function in c language?

I guess you meant the following:'In C language, when you call a function,the parameters are passed by-value.'