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

Discussion

Constants in C can be divided into categories ?

  • A.3
  • B.6
  • C.2
  • D.4

Answer: C

Correct answer: 2

C constants are conventionally divided into two categories: primary and secondary.

Primary constants are the fundamental values - integer, real and character constants. Secondary constants are those built from them, covering arrays, pointers, structures, unions and enumerations. The division mirrors the distinction between primitive and derived data types, and it is a teaching taxonomy rather than a distinction the language standard itself draws.

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

Post your comment

Please log in or register to post a comment.