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 / sreenivas

#include<stdio.h>
main()
{
long n=12345,r=0;
while(n)
{
r=r*10+n%10;
n=n/10;
}
printf("%ld",r);
}

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

1772


What is pragma in c?

1206


How can I swap two values without using a temporary?

1103


What is this pointer in c plus plus?

1085


What is 'bus error'?

1144


What is volatile variable in c with example?

1043


Write a program to swap two numbers without using third variable in c?

1128


how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12

1087


How can I sort a linked list?

1046


How do I get an accurate error status return from system on ms-dos?

1120


What is a sequential access file?

1171


How many levels of pointers have?

1042


What is linear search?

1132


Can you write a programmer for FACTORIAL using recursion?

1041


what do you mean by enumeration constant?

1011