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 does the characters “r” and “w” mean when writing programs that will make use of files?

848


Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.

655


What are the 3 types of structures?

564


Using which language Test cases are added in .ptu file of RTRT unit testing???

3580


Why c is called a middle level language?

634






How are strings stored in c?

586


Does * p ++ increment p or what it points to?

606


Why do we use pointer to pointer in c?

593


For what purpose null pointer used?

606


How do you override a defined macro?

693


Is c dynamically typed?

665


What are the complete rules for header file searching?

664


How do I get a null pointer in my programs?

614


Why use int main instead of void main?

590


What is 2c dna?

602