1.

What is the scope of an automatic variable?(a) Exist only within that scope in which it is declared(b) Cease to exist after the block is exited(c) Exist only within that scope in which it is declared & exist after the block is exited(d) All of the mentionedThe question was asked in unit test.My question is from Automatic Variables in portion C Functions and Structure of a Program of C

Answer»

Right OPTION is (C) Exist only within that scope in which it is declared & exist after the block is exited

To explain I would say: NONE.



Discussion

No Comment Found

Related InterviewSolutions