Задача Задача №3620373
А
А
Short answer depends on the language/context.
- In SQL (and many boolean contexts): -1 is treated as TRUE (nonzero); 3*2>5 is TRUE (since 6>5). TRUE OR TRUE = TRUE. So the result is TRUE (often displayed as 1).
- In C/C++-style languages: (-1) || (3*2>5) -> true, so the result is 1.
- In Python: -1 is truthy, and or returns the first truthy value, so -1 or (3*2>5) evaluates to -1.
Notes:
- The trailing “--” looks like a SQL comment start, which supports the SQL interpretation.
- If you’re given this for an exam, specify the language; otherwise, the safe takeaway is: the expression is truthy in most languages, but the exact numeric/boolean result can differ (true vs 1 vs -1) depending on the language. Do you want the result for a specific language?