Sports GK Questions and Answers 2024 (Latest Updated)

Awards & Honours GK Questions 2024 (Latest Updated)

Question

How is a variable accessed from another file?

A via the extern specifier
B via the auto specifier
C via the global specifier
D via the pointer specifier
Answer & Explanation
Option: [A]

The extern keyword is used to indicate that the variable can be accessed by another file. It's name is visible globally.

Advertisement
Assam Direct Recruitment Test Series