I get a warning message while executing a C program containg 'gets'.Is there any way to avoid this.Currently I am using ubuntu OS>

Recommended Answers

All 2 Replies

Don't use gets() Read that link -- it contains a lot of good-to-know dos-and-don'ts.

I get a warning message while executing a C program containg 'gets'.Is there any way to avoid this.Currently I am using ubuntu OS>

Yes, use a crappy compiler that doesn't warn you of 'potentially' bad...bad programming practises.

And its compiling the program not executing it that generates the warning...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.