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
What is a macro?
Is r written in c?
Do you know the purpose of 'register' keyword?
What is || operator and how does it function in a program?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
Is array a primitive data type in c?
What is bubble sort technique in c?
Why doesn't C support function overloading?
Create a simple code fragment that will swap the values of two variables num1 and num2.
What is main function in c?
If fflush wont work, what can I use to flush input?
What do you know about the use of bit field?
In C language what is a 'dangling pointer'?
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.