diff options
Diffstat (limited to '5a/7.1 Exercises.txt')
| -rw-r--r-- | 5a/7.1 Exercises.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/5a/7.1 Exercises.txt b/5a/7.1 Exercises.txt new file mode 100644 index 0000000..3a8699d --- /dev/null +++ b/5a/7.1 Exercises.txt @@ -0,0 +1,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
\ No newline at end of file |