Write a C program that accepts a string from the user.The program is to determine if entered string is a palindrome or not

No thanks.

lol

OK, done. Now what?

commented: Haha +11

Write a C program that accepts a string from the user.The program is to determine if entered string is a palindrome or not

Why ?

#include<stdio.h>
#include<string.h>
#define size 25

void main()
{
char strsrc;
char strtmp;

clrscr();
printf("\n Enter String:= "); gets(strsrc);

strcpy(strtmp,strsrc);
strrev(strtmp);

if(strcmp(strsrc,strtmp)==0)
printf("\n Entered string \"%s\" is palindrome",strsrc);
else
printf("\n Entered string \"%s\" is not
palindrome",strsrc);
getch();
}

commented: We don't give code. We help them write their own. -3
commented: And more importantly, don't give crappy code.. -1

And now try compiling this on something that isn't outdated and non-standard and see if it compiles....

Furthermore, even dribble like this should be placed in code tags. Learn how to use them.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.