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
Which of these functions is safer to use : fgets(), gets()? Why?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
What are the benefits of c language?
How can I sort more data than will fit in memory?
Add Two Numbers Without Using the Addition Operator
Who developed c language?
C language questions for civil engineering
What is call by reference in functions?
Does c have class?
Explain how do you generate random numbers in c?
What are high level languages like C and FORTRAN also known as?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
What is the difference between malloc calloc and realloc in c?
Can you write the function prototype, definition and mention the other requirements.
How is null defined in c?