ഇങ്ങോട്ട് നോക്കു

വഴി തെറ്റി വന്നവര്‍

Powered By Blogger

Google Profile

My photo
KAYAMKULAM, KERALA, India
Hi, I’m Renjith Krishnan, a tech enthusiast from Kayamkulam (India), and this my personal page. I write some technological contents , just the things that interested me during the daily life and some automated updates pulled from other sites . If you were looking for my site ,and wanna read some tech stuffs then please go here www.renjith007.co.cc I update my status on twitter [@renjith0007], orkut [@renjith krishnan], FB [@renjith krishnan], some times in skype [@kichuse1] and if you like my stuffs,add me to your network. It’s exciting to meet new people.

വിളികുവോ ആവൊ

Skype Me™!

* * എല്ലാവര്‍ക്കും എന്‍റെ ബ്ലോഗിലേക് സ്വാഗതം * *

C program to find wheather the string is palindrome or not

#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;
}

0 comments:

തിരയുക

എന്നോട് കൂട്ട് കൂടാമോ ?

വിരുന്നുവന്നവര്‍