Question: Please create a C file that can compile with GCC Palindrome: A palindrome, in our context, is a word that reads the same even when

Please create a C file that can compile with GCC  Please create a C file that can compile with GCC Palindrome:

Palindrome: A palindrome, in our context, is a word that reads the same even when it is read backwards. For instance, radar, mom, noon, and kayak are all palindromes whereas homework, assignment, and operating are not. For this problem, you can safely assume that words will not contain the newline or space characters but can contain other printable ASCII characters. The maximum length of a word will be 1024. You will read your inputs from the standard input and print all your outputs in the standard output. The first line of your program's input is N (i.e., 1 lessthanorequalto N lessthanorequalto 100) which indicates the number of words for which you would need to decide whether that word is a palindrome. Then N lines will follow where each of the N lines will contain a word you need to test. If your word is a palindrome you should print "PALINDROME " (without the quotes) whereas print "NOT PALINDROME " (without the quotes) when the word is not palindrome

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!