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 is assignment operator?

1113


What does main () mean in c?

1148


Difference between Function to pointer and pointer to function

1130


Why do we need volatile in c?

1232


What is function prototype in c with example?

1165


Mention four important string handling functions in c languages .

1160


Explain what is the purpose of "extern" keyword in a function declaration?

1128


Write a factorial program using C.

1123


If the size of int data type is two bytes, what is the range of signed int data type?

1075


How many header files are in c?

1069


how should functions be apportioned among source files?

1169


How do you sort filenames in a directory?

1237


c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above

1104


How do you determine the length of a string value that was stored in a variable?

1175


How can I read/write structures from/to data files?

1018