go What's the result of the expression?

2026-08-30 浏览 (1)

What's the result of the expression?

5 - 2 * 5 + 7
  1. 2 CORRECT
  2. 22
  3. -19
  4. 36
  5. -12

What's the result of the expression?

5 - (2 * 5) + 7
  1. 2 CORRECT
  2. 22
  3. -19
  4. 36
  5. -12

1: The expression can also be: 5 + (2 * 5) + 7

What's the result of the expression?

5 - 2 * (5 + 7)
  1. 2
  2. 22
  3. -19 CORRECT
  4. 36
  5. -12

What's the result of the expression?

5. -(2 * 5 + 7)
  1. 2
  2. 22
  3. -19
  4. -12
  5. -12.0 CORRECT

4: You're close but remember! The result of an expression with floats and integers is always a float.

你可能感兴趣的文章

go Which group of operators below is arithmetic operators?

go Which expression increases n by 1?

  • 所属分类: 后端技术
  • 本文标签: golang
  • 版权声明: 本文链接 https://seaxiang.com/blog/JJ4aQsOV