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...

palindrome for strings and numbers----Can anybody do the
prog?

Answer Posted / arup bhattacharya

#include<stdio.h>
#include<conio.h>
void main()
{
int n,r,temp;
int s=0;
clrscr();
printf("enter the number");
scanf("%d",&n);
temp=n;
while(temp>0)
{
r=temp%10;
s=s*10+r;
temp=temp/10;
}
if(n==temp)
printf(number is pallindrome");
else
printf("not pallindrome");
getch();
}

Is This Answer Correct ?    9 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to declare a variable?

1019


Difference between macros and inline functions? Can a function be forced as inline?

1289


Where static variables are stored in c?

1122


Who developed c language and when?

1079


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

1009


How does placing some code lines between the comment symbol help in debugging the code?

1020


What is hungarian notation? Is it worthwhile?

1234


What is the importance of c in your views?

1181


Explain how to reverse singly link list.

1159


Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?

1148


What are two dimensional arrays alternatively called as?

1198


What are void pointers in c?

1010


Can a local variable be volatile in c?

1013


What is volatile variable how do you declare it?

1118


What is an lvalue?

1075