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
What is c basic?
What is the scope of local variable in c?
Why do we use c for the speed of light?
Calculate 1*2*3*____*n using recursive function??
Explain what are the standard predefined macros?
What is bss in c?
What are the different types of constants?
Difference between Shallow copy and Deep copy?
What is the difference between functions abs() and fabs()?
How many identifiers are there in c?
What is typedf?
What does & mean in scanf?
When should the const modifier be used?
Is c a great language, or what?
Is there a built-in function in C that can be used for sorting data?