Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain why c is faster than c++?

1056


How can I read and write comma-delimited text?

1063


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....

1955


How can you check to see whether a symbol is defined?

1091


Explain what will be the outcome of the following conditional statement if the value of variable s is 10?

1235


What are the advantages and disadvantages of pointers?

1059


What is enumerated data type in c?

1069


What is the difference between ++a and a++?

1193


Who is the main contributor in designing the c language after dennis ritchie?

989


Can we access array using pointer in c language?

1077


What is a sequential access file?

1153


What is typedef struct in c?

1032


Define the scope of static variables.

1114


What is a scope resolution operator in c?

1247


Explain what are header files and explain what are its uses in c programming?

1139