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

how to find sum of digits in C?

Answer Posted / mokhtar

all your answers are wrong, guys, for example when you get the reminder of 2/10, it gives you 0, because all of you used int as a data type.
so I think the the method is right, but the implementation is wrong.

regards.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are pointers? Why are they used?

1248


Is c is a middle level language?

1126


What is double pointer?

1041


What is sizeof in c?

1053


Can we declare function inside main?

1049


What is the usage of the pointer in c?

1194


write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34

2251


What is scope of variable in c?

1088


Explain how do you search data in a data file using random access method?

1175


What is meant by preprocessor in c?

1072


What is a scope resolution operator in c?

1328


What is c++ used for today?

1152


What is output redirection?

1277


Is c easy to learn?

1032


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2794