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

Try this....

main()
{
int a,b;
printf("Enter two integers \n");
scanf("%d%d",&a,&b);
printf("The diff is : %d ",a+(~b+1));
}

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is use of pointer?

1092


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

1035


Tell me can the size of an array be declared at runtime?

1052


What is a lookup table in c?

1124


What are different types of operators?

1046


Difference between pass by reference and pass by value?

1164


When we use void main and int main?

1090


how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12

1089


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1953


Why should I use standard library functions instead of writing my own?

1274


What is scope rule in c?

1074


What is a char c?

1043


Is there any possibility to create customized header file with c programming language?

1066


What is a program flowchart?

1213


How to Throw some light on the splay trees?

1066