Questions tagged [primitive]

A primitive type is a data type provided by a programming language as a basic building block.

The actual range of primitive data types that is available is dependent upon the specific programming language that is being used. For example, in C, strings are a composite but built-in data type, whereas in modern dialects of BASIC and in JavaScript, they are assimilated to a primitive data type that is both basic and built-in.

Classic basic primitive types may include:


  • (character, char)
  • (integer, int, short, long, byte) with a variety of precisions
  • number (float, double, real, double precision)
  • number (fixed) with a variety of precisions and a programmer-selected scale
  • , logical values (true, false)

Reference

977 questions
-5
votes
2 answers

return a primitive's name

For my program I have a large number of Public static int, it's mainly a readability thing so I can do something like SkillsArray[Archery] = 25 to see at a glance that the "archery skill" has a value/level/rank of 25 instead of trying to figure out…
NekoLLX
  • 219
  • 6
  • 19
-6
votes
1 answer

generic number in c++

I want to make a BigInteger object (for practice). I want the overloaded operators to accept any numerical datatype. I can do this polymorphically, but since it would be impractical to overload the 20+ binary operators for each of the 20~ numerical…
chrisgotter
  • 383
  • 1
  • 3
  • 13
1 2 3
65
66