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 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 has the author Maksim Margolin written? What does EP Korea mean on the back of silver serving spoon? Where is tooth 11 situated? What media does Marika use? How is a floppy heart wall treated? How do you remove back seat on 1992 Chevy K1500? What if too much antifreeze in the car? What European country has the most growing vines? Where can you get iron beads? How long does it takes a bank to reverse a disputed debit card charge and to issue a credit to your account? What is a wither goat? If the adjustment for depreciation for the year is inadvertently omitted will the assets on the balance sheet at the end of the period be understated? What is class code 21585 for general liability insurance? What is the timing for a 1975 small block 350 with 4 barrel automatic? What is the abbreviation for total 5000? What was the last year that the 10000 bill was printed? What kept African Americans from achieving full citizenship? Who has won the championship the most? Why are green led traffic lights so unreliable? What was aryabhata known for?

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.