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
How do we open a binary file in Read/Write mode in C?
What is %lu in c?
What is the difference between arrays and pointers?
How many levels of pointers have?
Explain the use of keyword 'register' with respect to variables.
What is a dynamic array in c?
What is the use of c language in real life?
How can I discover how many arguments a function was actually called with?
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
Explain what is gets() function?
What is main return c?
Is c procedural or object oriented?
What is void main () in c?
how we can make 3d venturing graphics on outer interface