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 a program to display reverse of a number using for
loop?

Answer Posted / balaji ganesh

#include<stdio.h>
#include<string.h>
void main()
{
char a[50];
int i,n;
clrscr();
printf("\n enter number:");
scanf("%s",a);
printf("reverse number is:");
for(i=strlen(a);i>=0;i--)
{
printf("%c",a[i]);
}
getch();
}

Is This Answer Correct ?    30 Yes 26 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between constant pointer and pointer to a constant.

1155


What is union in c?

1119


What does node * mean?

1240


What is a pointer on a pointer in c programming language?

1146


What are the 4 types of programming language?

1135


How can I read and write comma-delimited text?

1077


What is the size of array float a(10)?

1147


What is #define?

1121


Explain what are the __date__ and __time__ preprocessor commands?

1130


What is 1f in c?

2666


Is null always equal to 0(zero)?

1038


How can I implement a delay, or time a users response, with sub-second resolution?

1079


When can a far pointer be used?

1031


What is the best way of making my program efficient?

1040


Can we change the value of #define in c?

1001