hi,
I am trying to make a program that reverses a string. example: input:hello, output:olleh
the program is given below but for some reason its not running.Compilation took place and there are 0 errors but nothing happens adter we give the input Can someone please help me in this.
Never use gets(). Because it is impossible to tell without knowing the data in advance how many characters gets() will read, and because gets() will continue to store characters past the end of the buffer, it is extremely dangerous to use. It has been used to break computer security. Use fgets() instead.