Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Explain About fork()?

0 Answers   TISL,


code for quick sort?

0 Answers  


Write a program to reverse a given number in c language?

0 Answers  


What is the difference between int main and void main in c?

0 Answers  


How can I read and write comma-delimited text?

0 Answers  


4.A function 'q' that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as: A)int (*q(char*)) [] B)int *q(char*) [] C)int(*q)(char*) [] D)None of the Above

6 Answers   Accenture,


What is the maximum length of an identifier?

0 Answers  


What's wrong with "char *p; *p = malloc(10);"?

5 Answers  


Difference between strcpy() and memcpy() function?

0 Answers  


write a function for strtok()??

2 Answers   Verifone,


what is a void pointer?

2 Answers  


find the size of structure without using the size of function

1 Answers   Bosch,


Categories