C provides three logical operators when we test more than one condition to make decisions. These are: && (meaning logical AND), || (meaning logical OR) and ! (meaning logical NOT).
//Logical Operators #include<stdio.h> int main() { int a=32; //>=35 and(&&) <=100 printf("\nLogical And : %d",(a>=35 && a<=100)); printf("\nLogical Or : %d",(a>=35 || a<=100)); printf("\nLogical Not : %d",!(a>=35)); return 0; }To download raw file Click Here
Logical And : 0 Logical Or : 1 Logical Not : 1
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions