answersLogoWhite

0

C program for checking a palidrome?

User Avatar

Attili ∙

Lvl 1
∙ 14y 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

∙ 14y 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 five digit palidrome?

12421


What is a palidrome for even or balanced?

level


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 is the scale factor for 5cm if the model is 58.7cm and actual is 140.9m? How do you do a rhyme scheme on a poem? Why did France and England fight the Hundred Years and acirc and 128 and 153War How did the outcome of this conflict help contribute to the decline of feudalism? What are six elements that make up 99 percent of living matter? What did Samuel pepys do when he saw the fire? What year was Bugles originated? How is energy provided to the muscles while exercising vigorously? What is the distance of an indoor track? Are Jeep liberty 3.7 liter engines interchangeable Have a bad 3.7 liter engine in a 2003 Jeep liberty and was wondering if another year engine would work in it? When did eminem's mother die? Is hug an Asian day real? What is the Inuit name for Mt McKinley? What is the Geico Lizard famous for? What type of bagpipes are used in the fire service? How many cups are in a pint of milk? Why is cycling good for your health? What are the factors affecting quality of performance of colleagues? Who does diskectomy? When should you change timing belt on Nissan Xterra 2001? Does it matter if one of the camshaft sprockets are out by a full revolution when setting the timing on a vauxhall tigra x reg 1.4?

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 ©2025 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.