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 recursion in C

1023


what is the format specifier for printing a pointer value?

974


What is a program?

1188


i got 75% in all semester am i eligible for your company

2173


Is main an identifier in c?

1089


What is getch () for?

1151


What is meant by 'bit masking'?

1336


Explain what is wrong with this statement? Myname = ?robin?;

1526


What are predefined functions in c?

1024


Explain what is meant by 'bit masking'?

1123


#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }

1109


What does nil mean in c?

1187


What is null in c?

1009


What is the method to save data in stack data structure type?

1037


How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include...

5406