1.

A variable declared in a function can be used in main().(a) True(b) False(c) True if it is declared static(d) None of the mentionedI got this question in a national level competition.I'd like to ask this question from Declarations in division Data Types, Operators and Expressions in C of C

Answer»

The CORRECT answer is (b) False

Explanation: SINCE the SCOPE of the variable DECLARED within a function is restricted only within that function, so the above STATEMENT is false.



Discussion

No Comment Found

Related InterviewSolutions