Write a program in C for showing working of different
logical operator in C.
Your program should guide users with proper message/menu on
the console.
Answer Posted / chauhan varsha
#include<stdio.h>
void main()
{
int a=5,b=8,c=9,d=2;
clrscr();
if((a==b)&&(a==c))
{
printf("value is same. check 3 values using logical
operator..");
}
else if((a!>b) || (a!>c))
{
printf("value of a is not grater from b & c check
using logical operator or & not...");
}
getch();
}
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Explain why c is faster than c++?
How can I read and write comma-delimited text?
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
How can you check to see whether a symbol is defined?
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
What are the advantages and disadvantages of pointers?
What is enumerated data type in c?
What is the difference between ++a and a++?
Who is the main contributor in designing the c language after dennis ritchie?
Can we access array using pointer in c language?
What is a sequential access file?
What is typedef struct in c?
Define the scope of static variables.
What is a scope resolution operator in c?
Explain what are header files and explain what are its uses in c programming?