Machine-translated by Google. Questions are authored in English.
Top

Discussion

Global variables are:

  • A.Internal
  • B.External
  • C.Both (a) and (b)
  • D.None of the mentioned.

Answer: B

Correct answer: External

A variable declared at file scope has external linkage by default, so other files can reach it with an extern declaration. Adding static restricts it to the file in which it is defined.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.