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

simple c program for 12345 convert 54321 with out using string

Answer Posted / mohit

#include<stdio.h>
#include<conio.h>
main()
{
long int num,x=0;
int b;
while(n>0)
{
b=num%10;
num=num/10;
x=x*10+b;
}
printf("new number=%ld",x);
getch();
}

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

c language interview questions & answer

1974


Explain how do you list a file’s date and time?

1048


How do I send escape sequences to control a terminal or other device?

1086


What is anagram in c?

931


What is the explanation for the dangling pointer in c?

1126


What are the types of functions in c?

995


What is define c?

1092


can anyone please tell about the nested interrupts?

2128


What are the rules for the identifier?

1179


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

2275


Why is c known as a mother language?

1248


What is sizeof int?

1113


What are categories used for in c?

1112


Difference between MAC vs. IP Addressing

1158


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

1155