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

Discussion

Which of the following storage classes supports the char data type?

  • A.register
  • B.static
  • C.auto
  • D.All of the mentioned

Answer: D

Correct answer: All of the mentioned

char works with every storage class: auto char, static char and register char are all valid. Storage class and type are independent choices - the first says where and how long the object lives, the second what it holds.

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

Post your comment

Please log in or register to post a comment.