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

Write programs for String Reversal & Palindrome check

1059


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1969


what is reason of your company position's in india no. 1.

2330


What do you understand by normalization of pointers?

1058


What is operator promotion?

1058


What is the difference between array and structure in c?

1165


In a switch statement, explain what will happen if a break statement is omitted?

1070


Why is it important to memset a variable, immediately after allocating memory to it ?

2073


How can I handle floating-point exceptions gracefully?

1171


Here is a neat trick for checking whether two strings are equal

1018


What are the types of variables in c?

1018


what type of questions arrive in interview over c programming?

2029


What is a program flowchart and how does it help in writing a program?

1139


What does %p mean?

1085


Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

2053