Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Find string palindrome 10marks

Answer Posted / abhilash meda

#include"string.h"
void main()
{
char *str,*rev;
int i,j;
clrscr();
printf("\nEnter a string:");
scanf("%s",str);
for(i=strlen(str)-1,j=0;i>=0;i--,j++)
rev[j]=str[i];
rev[j]='\0';
if(strcmp(rev,str))
printf("\nThe string is not a palindrome");
else
printf("\nThe string is a palindrome");
getch();
}

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Subtract Two Number Without Using Subtraction Operator

906


Difference between pass by reference and pass by value?

1210


What is the explanation for cyclic nature of data types in c?

1263


What is variable in c example?

1133


What is the size of structure pointer in c?

1118


Explain what are bus errors, memory faults, and core dumps?

1317


What is a pointer and how it is initialized?

1233


What is a structural principle?

1243


Why doesn't C support function overloading?

2868


What are the data types present in c?

1240


What is dynamic variable in c?

1099


What is array within structure?

1174


Explain what does the format %10.2 mean when included in a printf statement?

1414


Explain the meaning of keyword 'extern' in a function declaration.

1210


What does it mean when the linker says that _end is undefined?

1148