1.

Which error is produced if the automatic variables are used without declaration?(a) Undefined symbol(b) Memory error(c) Type mismatch(d) Statement missingI got this question in my homework.This intriguing question comes from Automatic Variable topic in portion Memory Allocation & Scope of Variable of Object Oriented Programming

Answer»

The CORRECT option is (a) Undefined symbol

The explanation is: If the automatic variables are used without DECLARATION or are used before the declaration then the compiler THROWS an error. The error that the symbol is undefined. The compiler MUST know everything before that can be used.



Discussion

No Comment Found

Related InterviewSolutions