1.

What is an error in C++?(a) Violation of syntactic and semantic rules of a languages(b) Missing of Semicolon(c) Missing of double quotes(d) Violation of program interfaceI got this question during an internship interview.Origin of the question is Exception Handling topic in division Derived Classes, Templates & Exception Handling in C++ of C++

Answer»

Correct option is (a) VIOLATION of syntactic and semantic RULES of a languages

To explain I would SAY: An error occurs when rules and laws of a LANGUAGE is violated while writing PROGRAMS in that language.



Discussion

No Comment Found

Related InterviewSolutions