1.

Which among the following is a correct statement for variables?(a) Variable can be declared many times(b) Variable can be declared only one time(c) Variable declaration can’t be done more than ones(d) Variable declaration is always done more than one timeThis question was addressed to me in my homework.My question is taken from Extern Variable in section Memory Allocation & Scope of Variable of Object Oriented Programming

Answer»

Right CHOICE is (a) Variable can be DECLARED MANY times

For explanation: The variables can be declared any number of times. There is no RESTRICTION on how many times a single variables can be declared. Declaration is just an indication that the variable will be used in the PROGRAM.



Discussion

No Comment Found

Related InterviewSolutions