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


write program for palindrome

Answers were Sorted based on User's Feedback



write program for palindrome..

Answer / felix

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

Is This Answer Correct ?    242 Yes 354 No

Post New Answer

More C++ General Interview Questions

What happens when the extern "c" char func (char*,waste) executes?

0 Answers  


How to detect memory leaks in c++

1 Answers   Mphasis,


Why is standard template library used?

0 Answers  


What is the purpose of extern storage specifier?

0 Answers  


Explain terminate() and unexpected() function?

0 Answers  


How many types of classes are there in c++?

0 Answers  


What are the important differences between c++ and java?

0 Answers  


Under what conditions is multiple inheritance not recommended?

1 Answers  


What are the benefits of pointers?

0 Answers  


What is data hiding c++?

0 Answers  


What are function poinetrs? where are they used?

1 Answers   CTS,


How do c++ struct differs from the c++ class?

0 Answers  


Categories