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

to find out the reverse digit of a given number

Answer Posted / jet lee

#include<stdio.h>

int rev(int y);
int main()
{
int x;
printf("\n please enter the number:\n");
scanf("%d",&x);
rev(x);
return 0;
}

int rev(int y)
{

int i;
do
{
i=(y%10);
printf("%d",i);
y=(y/10);
}while(y>0);
}

Is This Answer Correct ?    17 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What 'lex' does?

1187


What are variables and it what way is it different from constants?

1244


how can use subset in c program and give more example

1996


When is a void pointer used?

1243


Should I learn c before c++?

1237


Where are c variables stored in memory?

1077


Is it possible to use curly brackets ({}) to enclose single line code in c program?

1325


What are linked lists in c?

1132


A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler

1103


The statement, int(*x[]) () what does in indicate?

1151


What's the best way of making my program efficient?

1110


Explain how can I make sure that my program is the only one accessing a file?

1225


What is %d called in c?

1236


What are the parts of c program?

1103


What is table lookup in c?

1102