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

difference of two no's with out using - operator

Answer Posted / sandeep

int count(int a , int b)
{
int c=0;
if(a<b)
for(i=a;i<=b;i++)
{
c++;
}
else
for(i=b;i<=a;i++)
{
c++;
}
return(c); }

www.NSITFORUM.co.cc

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between typedef and #define?

987


What is s in c?

993


What is output redirection?

1162


A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile

1047


What is the difference between struct and typedef struct in c?

1081


Is it valid to address one element beyond the end of an array?

1115


What are the types of pointers?

1030


What does a function declared as pascal do differently?

1036


What is the hardest programming language?

1093


How many keywords (reserve words) are in c?

1083


How will you delete a node in DLL?

1214


Why void main is used in c?

993


How can I call a function with an argument list built up at run time?

1170


Who developed c language and when?

1003


What is a stream water?

1123