首页题目详情
What does a compiler primarily check?

A.Semantics
B.Syntax
C.Both syntax and semantics
D.Only the runtime behavior
优质解答
答案
B
解析
Compilers primarily check for syntax errors to ensure that the code is structured correctly before translating it into machine code. Semantical checks are done by interpreters or semantic analyzers.
计算机专业英语单选题中等AI生成