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

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

c=b-a :...easy and best .....

Is This Answer Correct ?    10 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different file extensions involved when programming in C?

1266


What is #include conio h?

996


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

1123


Explain what is the difference between a string and an array?

1166


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

1127


What is malloc calloc and realloc in c?

1323


How can I find out if there are characters available for reading?

1109


Simplify the program segment if X = B then C ← true else C ← false

3013


What library is sizeof in c?

1089


What is a structural principle?

1163


Why is it usually a bad idea to use gets()? Suggest a workaround.

1783


Can a pointer be volatile in c?

981


Explain what are the standard predefined macros?

1114


I came across some code that puts a (void) cast before each call to printf. Why?

1218


Do pointers take up memory?

1155