Question 38Asked in UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)

Which of the following storage classes have global visibility in C/C++?

  1. AAuto
  2. BExtern
  3. CStatic
  4. DRegister
Show answerHide answer

Correct answer: (B) Extern

Explanation

extern declares variables/functions with external linkage, giving them global visibility across files. It is the default storage class of all global variables and functions.

From UGC NET Computer Science PYQ, June 2017 (Paper II & III, Selected Questions)

This is question 38 of UGC NET Computer Science PYQ, June 2017 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.