Algorithmics & Programming - Basic types, operators and expressions - Part 1

preview_player
Показать описание
Part 1 of the second session of Algorithmics and Programming course covering basic types, operators and expressions
Рекомендации по теме
Комментарии
Автор

Hello Dr., at 52:51, I think there is a little mistake.


 You said that if we have 0 "OR" (||) something else, then this directly gives a 0.



Shouldn't we analyze the statement !(32>12) first? the reason it gives a 0 is because !(32>12) is false.


!(32>12) is false as the negation of 32>12, is the statement 32<12 which is false. However, if we originally had

0 || !(32<12), this will return true and not false, as the "OR" condition only implies false when both statements are false, while when at least one statement is true, the condition implies true. I think you mistook || for && because you were going fast.

anarchistz
Автор

hi Dr., at 46:26, L is used to force long double type not double

hsenwhby
Автор

25:50 you forgot to mention that first letter should always be a small letter.

lemon_maho
welcome to shbcf.ru