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

Explain how can I read and write comma-delimited text?

1154


What are the features of the c language?

1067


a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none

1253


In C language what is a 'dangling pointer'?

1118


illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question

2057


Where static variables are stored in memory in c?

982


What does sizeof function do?

1179


What are the 4 types of programming language?

1103


What is c programming structure?

1177


Are bit fields portable?

1146


What is "Hungarian Notation"?

1092


largest Of three Number using without if condition?

1580


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

1128


What is a global variable in c?

989


In which layer of the network datastructure format change is done

1875