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

write a program to compare 2 numbers without using logical
operators?

Answer Posted / bashu

main()
{
int x,y;
sf("%d,%d",&x,&y);
if(x^y)
pf("not equal");
else
pf("equal");
}

Is This Answer Correct ?    39 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a example of a variable?

952


Whats s or c mean?

953


What are the 4 types of unions?

991


What is the difference between c and python?

1109


What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

1383


What is merge sort in c?

1004


What are header files and explain what are its uses in c programming?

1070


What is pass by reference in c?

1148


What is the right way to use errno?

1007


What is meant by high-order and low-order bytes?

1005


What does void main return?

1074


Explain what’s a signal? Explain what do I use signals for?

1056


What are the features of c languages?

1032


What is variable initialization and why is it important?

1167


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

1014