Explore BrainMass

Differences between gets() and fgets()

What is the difference between gets() and fgets()? Can we use fgets() in place of gets()? Substantiate your answer.

Solution Summary

This solution explains with an example the differences between gets() and fgets() functions. This question in answered with 'C' Language as the basis.