aboutsummaryrefslogtreecommitdiff
path: root/5a/7.1 Exercises.txt
blob: 3a8699d3bb11ea343d8b2c8ca4349edd5b1305ef (plain) (blame)
1
2
3
4
5
6
7
8
9
int int_exp1 = 0, int_exp2 = 1;
char char_exp = 'B';

1. int_exp1 => int_exp2  it sould be >= not =>
2. int_exp1 = int_exp2 = is assignment not comparision
3. int_exp1 =! int_exp2 =! should be !=
4. char_exp == "A" is comparing a string and char
5. int_exp1 > char_exp is comparing an int and char
6. int_exp1 < 2 && > -10 you cannot combine && and > in this manner to make an additional comparision