using only #include <stdio.h> and #include <stdlib.h> Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string.
Sample Test:
Enter a string: madam
madam is a palindrome.
Enter a string: 09023
09023 is not a palindrome.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

What are pointers in C? Give an example where to illustrate their significance.

0 Answers   Wipro,


how to create c progarm without void main()?

1 Answers   NIIT,


Why is C language being considered a middle level language?

0 Answers  


how to write a bubble sort program without using temporary variable?

1 Answers   Aricent,


What is c programming structure?

0 Answers  






What is ponter?

0 Answers   TCS,


What is the scope of static variables?

1 Answers  


what is the use of c program?

4 Answers   Synergy, Web Synergies,


what is the code for getting the output as * ** ***

5 Answers   Caritor,


What is a volatile keyword in c?

0 Answers  


What is the difference between local variable and global variable in c?

0 Answers  


how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.

0 Answers  


Categories