answersLogoWhite

0

C program for checking a palidrome?

User Avatar

Attili ∙

Lvl 1
∙ 15y ago
Updated: 8/18/2019

#include<stdio.h>

main()

{

char a[20],b[20];

printf("enter a string");

scanf("%s",&a);

strcpy(b,a);//copies string a to b

strrev(b);//reverses string b

if(strcmp(a,b)==0)//compares if the original and reverse strings are same

printf("\n%s is a palindrome",a);

else

printf("\n%s is not a palindrome",a);

return 0;

}

User Avatar

Wiki User

∙ 15y ago
Copy

What else can I help you with?

Related Questions

How do you Write A program in c language for checking a diagonal matrix?

Write a program in c++ that take input in a integer matrix of size 4*4 and find out if the entered matrix is diagonal or not.


What is the palidrome for the name of a woman in the old testament?

The palidrome for the name of a woman in the Old Testament is &quot;Hannah&quot;.


What is the palidrome for tier?

level


A Palidrome for Bounce in water?

bob


What is a palidrome for the sound of a horn?

toot


What is a palidrome for a female sheep?

Ewe


What is a palidrome for even or balanced?

level


What is a five digit palidrome?

12421


A palidrome for the sound of a horn?

toot


What is the palidrome for a secret look?

peep


What is a palidrome for when your feeling energetic?

napopan


What is a palidrome for goofy person?

kook, boob

Trending Questions
What to do when trying to download iTunes and it says that iTunes is not a valid win 32 application? How long does it take to get into the system? What is longitude hours in centaurus constellation? How do you say tell me in french? What happened to Great Britain after world war 2? Orion is not the only nebula in space this is another one that is the name of a bird that rhymes with fawn? What is the meaning of the 'i' in 'iDog'? What does an ecg record? What can be done to please the Sumerian gods and earn their protection in life? Does force unleashed have 2 player dual mode on the xbox 360? 1867 half dollar Confederate States of America coin worth? When did Arthur Lydiard die? How you find the volume of an irregularly shaped of aluminum? What is compormation? How do you become the best salesman? Were there any witnesses in the OJ Simpson case? When will doctor tell the gender of your baby? Is there pendulum in Burj al Arab? What song are the lyrics just prayed to a guy that I don't believe in from? How to replace Mitsubishi l200 gearbox bearings?

Resources

Leaderboard All Tags Unanswered

Top Categories

Algebra Chemistry Biology World History English Language Arts Psychology Computer Science Economics

Product

Community Guidelines Honor Code Flashcard Maker Study Guides Math Solver FAQ

Company

About Us Contact Us Terms of Service Privacy Policy Disclaimer Cookie Policy IP Issues
Answers Logo
Copyright ©2026 Infospace Holdings LLC, A System1 Company. All Rights Reserved. The material on this site can not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Answers.