Logical Operators
Examples:
if (grader == 1 && age >= 65)
++snrFemales;
if (semesterAvg >= 90 || finalExam >= 90)
grade = 'A';
if !(grade == 'F') /* or (grade != 'F') */
printf("Student passed.\n");
Previous slide
Next slide
Back to first slide
View graphic version