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 macro?

1101


Is r written in c?

1149


Do you know the purpose of 'register' keyword?

1018


What is || operator and how does it function in a program?

1082


Explain how do I determine whether a character is numeric, alphabetic, and so on?

1130


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

1052


Is array a primitive data type in c?

1054


What is bubble sort technique in c?

973


Why doesn't C support function overloading?

2746


Create a simple code fragment that will swap the values of two variables num1 and num2.

1284


What is main function in c?

1075


If fflush wont work, what can I use to flush input?

1100


What do you know about the use of bit field?

1043


In C language what is a 'dangling pointer'?

1135


FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.

1743