The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
780 views

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

  1. Auto
  2. Extern
  3. Static
  4. Register
asked in Others by Veteran (400k points) | 780 views

1 Answer

0 votes
option 2

extern

Keyword extern is used for declaring extern variables in c. This modifier is used with all data types like int, float, double, array, pointer, structure, function etc. It is default storage class of all global variables as well all functions.
answered by Active (3.9k points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
49,447 questions
53,651 answers
186,110 comments
70,913 users