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

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

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™!

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

Program to check whether a given string is palindrome or not

/* Program to check whether a given string is palindrome or not */
#include<stdio.h>
#include<conio.h>
main()
{
char s[1024];
int i,j,l,len;
clrscr();

//accept string
printf("Enter some string:\n");
gets(s);

//check if string is palindrome
for(l=0;s[l]!='\0';l++)
;
len=l;
for(i=0,j=len-1;i<j;i++,j--)
if(s[i]!=s[j])
{
printf("Not Palindrome.\n");
getch();
return;
}

printf("\nString is Palindrome.");
}

0 comments:

തിരയുക

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

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