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 does Doctor Who like and dislike? What is the word equation for Ammonia reacting with hydroelectric acid? Can a 1998 Ford Windstar use ethylene? How do you spell never in spanish? Which document established the Oversight Program and clarified authority and responsibilities of US intelligence agencies and serves as the basis for other oversight directives? Why is the pH to your stomach 2 good but possibly destructive to your bodies? What has greater mass Saturn or Jupiter? A strong base has a pH of? The Pros And Cons Of Renting New Commercial Property? What is the anagram of carob? Can you have ideas for a family contest one day? How do you display analog clock in Windows 8 laptop? Did john b Gordon work as a coal mine manager? Is Santa a feeling? When you start your 2004 Honda CRV it makes a screeching noise what is this and how much to fix it? What is the birth name of Ashley Robbins? What does it mean when you use the word sap? How is it possible to test a diode with a multimeter? What state symbol is carbon dioxide? Approximately how fast do electric common manic waves travel through space?

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.