InterviewSolution
Saved Bookmarks
| 1. |
Which of the following statement is false?(a) A variable defined once can be defined again with different scope(b) A single variable cannot be defined with two different types in the same scope(c) A variable must be declared and defined at the same time(d) A variable refers to a location in memoryThe question was posed to me in quiz.I need to ask this question from Declarations in portion Data Types, Operators and Expressions in C of C |
|
Answer» RIGHT option is (c) A variable MUST be declared and DEFINED at the same time Explanation: It is not an ERROR if the variable is declared and not defined. For example – extern declarations. |
|