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

Discussion

Which of the following cannot be static in C?

  • A.Variables
  • B.Functions
  • C.Structures
  • D.None of the mentioned

Answer: D

Correct answer: None of the mentioned

Variables and functions can both be static, which gives them internal linkage or, for a local variable, a lifetime as long as the program’s. A structure variable can be static too. What cannot be static is a structure type - but a type has no storage class in the first place.

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

Post your comment

Please log in or register to post a comment.