encyclopegia.org

Primitive data type

In computer science, primitive data types are sets of basic data types from which all other data types are constructed. Specifically it often refers to the limited set of data representations in use by a particular processor, which all compiled programs must use. Most processors support a similar set of primitive data types, although the specific representations vary. More generally, primitive data types may refer to the standard data types built into a programming language (built-in types). Data types which are not primitive are referred to as derived or composite. Primitive types are almost always value types, but composite types may also be value types.

In computer science, primitive data types are sets of basic data types from which all other data types are constructed. Specifically it often refers to the limited set of data representations in use by a particular processor, which all compiled programs must use. Most processors support a similar set of primitive data types, although the specific representations vary. More generally, primitive data types may refer to the standard data types built into a programming language (built-in types). Data types which are not primitive are referred to as derived or composite. Primitive types are almost always value types, but composite types may also be value types. ==Common primitive data types== The most common primitive types are those used and supported by computer hardware, such as integers of various sizes, floating-point numbers, and Boolean logical values. Operations on such types are usually quite efficient. Primitive data types which are native to the processor have a one-to-one correspondence with objects in the computer's memory, and operations on these types are often the fastest possible in most cases. Integer addition, for example, can be performed as a single machine instruction, and some offer specific instructions to process sequences of characters with a single instruction. But the choice of primitive data type may affect performance, for example it is faster using SIMD operations and data types to operate on an array of floats. ===Integer numbers=== An integer data type represents some range of mathematical integers. Integers may be either signed (allowing negative values) or unsigned (non-negative integers only). Common ranges are: ===Floating-point numbers=== A floating-point number represents a limited-precision rational number that may have a fractional part. These numbers are stored internally in a format equivalent to scientific notation, typically in binary but sometimes in decimal. Because floating-point numbers have limited precision, only a subset of real or rational numbers are exactly representable; other numbers can be represented only approximately. Many languages have both a single-precision (often called float) and a double-precision type (often called double). ===Booleans=== A Boolean type, typically denoted bool or boolean, is typically a logical type that can have either the value true or the value false. Although only one bit is necessary to accommodate the value set true and false, programming languages typically implement Boolean types as one or more bytes. Many languages (e.g. Java, Pascal and Ada) implement Booleans adhering to the concept of Boolean as a distinct logical type. Some languages, though, may implicitly convert Booleans to numeric types at times to give extended semantics to Booleans and Boolean expressions or to achieve backwards compatibility with earlier versions of the language. For example, early versions of the C programming language that followed ANSI C and its former standards did not have a dedicated Boolean type. Instead, numeric values of zero are interpreted as false, and any other value is interpreted as true. The newer C99 added a distinct Boolean type _Bool (later moved to bool as well as the keywords true and false with C23), and C++ supports bool as a built-in type and true and false as reserved words. ==Specific languages== ===Java=== The basic types of Java are similar to that of C. The Java virtual machine's set of primitive data types consists of: byte , short , int , long , char (integer types with a variety of ranges) float and double , floating-point numbers with single and double precisions boolean , a Boolean type with logical values true and false returnAddress , a value referring to an executable memory address. This is not accessible from the Java programming language and is usually left out. ===Characters and strings=== A character type is a type that can represent all Unicode characters, hence must be at least 21 bits wide. Some languages such as Julia include a true 32-bit Unicode character type as primitive. Other languages such as JavaScript, Python, Ruby, and many dialects of BASIC do not have a primitive character type but instead add strings as a primitive data type, typically using the UTF-8 encoding. Strings with a length of one are normally used to represent single characters. Some languages have character types that are too small to represent all Unicode characters. These are more properly categorized as integer types that have been given a misleading name. For example C includes a char type, but it is defined to be the smallest addressable unit of memory, which several standards (such as POSIX) require to be 8 bits. Recent versions of these standards refer to char as a numeric type. char is also used for a 16-bit integer type in Java, but again this is not a Unicode character type. The term string also does not always refer to a sequence of Unicode characters, instead referring to a sequence of bytes. For example, x86-64 has string instructions to move, set, search, or compare a sequence of items, where an item could be 1, 2, 4, or 8 bytes long. ==See also== ==References== ==External links== Differences Between Primitive Types and Objects

References

  1. Stone, R. G.; Cooke, D. J. (5 February 1987). Program Construction . Cambridge University Press. p. 18. ISBN 978-0-521-31883-9 . Wikipedia revision 1375982948, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1375982948
    Cite this reference

    MLA "Stone, R. G.; Cooke, D. J. (5 February 1987). Program Construction . Cambridge University Press. p. 18. ISBN 978-0-521-31883-9 . Wikipedia revision 1375982948, retrieved 2026-11-18." Stone, R. 2026-11-17. https://books.google.com/books?id=0k_xz8O2SewC&pg=PA18. Accessed 25 November 2026.

    Chicago "Stone, R. G.; Cooke, D. J. (5 February 1987). Program Construction . Cambridge University Press. p. 18. ISBN 978-0-521-31883-9 . Wikipedia revision 1375982948, retrieved 2026-11-18." Stone, R. 2026-11-17. https://books.google.com/books?id=0k_xz8O2SewC&pg=PA18.

    APA Stone, R. (2026). Stone, R. G.; Cooke, D. J. (5 February 1987). Program Construction . Cambridge University Press. p. 18. ISBN 978-0-521-31883-9 . Wikipedia revision 1375982948, retrieved 2026-11-18. Retrieved November 25, 2026, from https://books.google.com/books?id=0k_xz8O2SewC&pg=PA18

  2. Boolean type support library · retrieved 2026-11-17 · rev 1375982948
    Cite this reference

    MLA "Boolean type support library." 2026-11-17. https://devdocs.io/c/types/boolean. Accessed 25 November 2026.

    Chicago "Boolean type support library." 2026-11-17. https://devdocs.io/c/types/boolean.

    APA encyclopegia.org. (2026). Boolean type support library. Retrieved November 25, 2026, from https://devdocs.io/c/types/boolean

  3. Bool data type in C++ · retrieved 2026-11-17 · rev 1375982948
    Cite this reference

    MLA "Bool data type in C++." 2026-11-17. https://www.geeksforgeeks.org/bool-data-type-in-c/. Accessed 25 November 2026.

    Chicago "Bool data type in C++." 2026-11-17. https://www.geeksforgeeks.org/bool-data-type-in-c/.

    APA encyclopegia.org. (2026). Bool data type in C++. Retrieved November 25, 2026, from https://www.geeksforgeeks.org/bool-data-type-in-c/

  4. 2.2 Data Types and Sizes · retrieved 2026-11-17 · rev 1375982948
    Cite this reference

    MLA "2.2 Data Types and Sizes." Kernighan, Brian W. 2026-11-17. https://en.wikipedia.org/wiki/ISBN_(identifier). Accessed 25 November 2026.

    Chicago "2.2 Data Types and Sizes." Kernighan, Brian W. 2026-11-17. https://en.wikipedia.org/wiki/ISBN_(identifier).

    APA Kernighan, Brian W. (2026). 2.2 Data Types and Sizes. Retrieved November 25, 2026, from https://en.wikipedia.org/wiki/ISBN_(identifier)

  5. std::byte · retrieved 2026-11-17 · rev 1375982948
    Cite this reference

    MLA "std::byte." cppreference. 2026-11-17. https://cppreference.com/cpp/types/byte. Accessed 25 November 2026.

    Chicago "std::byte." cppreference. 2026-11-17. https://cppreference.com/cpp/types/byte.

    APA cppreference. (2026). std::byte. Retrieved November 25, 2026, from https://cppreference.com/cpp/types/byte

  6. std::meta::info · retrieved 2026-11-17 · rev 1375982948
    Cite this reference

    MLA "std::meta::info." cppreference. 2026-11-17. https://en.cppreference.com/cpp/meta/info. Accessed 25 November 2026.

    Chicago "std::meta::info." cppreference. 2026-11-17. https://en.cppreference.com/cpp/meta/info.

    APA cppreference. (2026). std::meta::info. Retrieved November 25, 2026, from https://en.cppreference.com/cpp/meta/info

  7. Chapter 2. The Structure of the Java Virtual Machine · retrieved 2026-11-17 · rev 1375982948
    Cite this reference

    MLA "Chapter 2. The Structure of the Java Virtual Machine." Lindholm, Tim; Yellin, Frank; Bracha, Gilad; Buckley, Alex (13 February 2015). 2026-11-17. https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-2.html#jvms-2.3. Accessed 25 November 2026.

    Chicago "Chapter 2. The Structure of the Java Virtual Machine." Lindholm, Tim; Yellin, Frank; Bracha, Gilad; Buckley, Alex (13 February 2015). 2026-11-17. https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-2.html#jvms-2.3.

    APA Lindholm, Tim; Yellin, Frank; Bracha, Gilad; Buckley, Alex (13 February 2015). (2026). Chapter 2. The Structure of the Java Virtual Machine. Retrieved November 25, 2026, from https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-2.html#jvms-2.3

  8. Cowell, John (18 February 1997). Essential Java Fast: How to write object oriented software for the Internet . Springer Science & Business Media. p. 27. ISBN 978-3-540-76052-8 . Wikipedia revision 1375982948, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1375982948
    Cite this reference

    MLA "Cowell, John (18 February 1997). Essential Java Fast: How to write object oriented software for the Internet . Springer Science & Business Media. p. 27. ISBN 978-3-540-76052-8 . Wikipedia revision 1375982948, retrieved 2026-11-18." Cowell, John (18 February 1997). 2026-11-17. https://books.google.com/books?id=5M9_fBX4QicC&pg=PA27. Accessed 25 November 2026.

    Chicago "Cowell, John (18 February 1997). Essential Java Fast: How to write object oriented software for the Internet . Springer Science & Business Media. p. 27. ISBN 978-3-540-76052-8 . Wikipedia revision 1375982948, retrieved 2026-11-18." Cowell, John (18 February 1997). 2026-11-17. https://books.google.com/books?id=5M9_fBX4QicC&pg=PA27.

    APA Cowell, John (18 February 1997). (2026). Cowell, John (18 February 1997). Essential Java Fast: How to write object oriented software for the Internet . Springer Science & Business Media. p. 27. ISBN 978-3-540-76052-8 . Wikipedia revision 1375982948, retrieved 2026-11-18. Retrieved November 25, 2026, from https://books.google.com/books?id=5M9_fBX4QicC&pg=PA27

  9. Rakshit, Sandip; Panigrahi, Goutam (December 1995). A Hand Book of Objected Oriented Programming With Java . S. Chand Publishing. p. 11. ISBN 978-81-219-3001-7 . Wikipedia revision 1375982948, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1375982948
    Cite this reference

    MLA "Rakshit, Sandip; Panigrahi, Goutam (December 1995). A Hand Book of Objected Oriented Programming With Java . S. Chand Publishing. p. 11. ISBN 978-81-219-3001-7 . Wikipedia revision 1375982948, retrieved 2026-11-18." Rakshit, Sandip; Panigrahi, Goutam (December 1995). 2026-11-17. https://books.google.com/books?id=aAsbEAAAQBAJ&pg=PA11. Accessed 25 November 2026.

    Chicago "Rakshit, Sandip; Panigrahi, Goutam (December 1995). A Hand Book of Objected Oriented Programming With Java . S. Chand Publishing. p. 11. ISBN 978-81-219-3001-7 . Wikipedia revision 1375982948, retrieved 2026-11-18." Rakshit, Sandip; Panigrahi, Goutam (December 1995). 2026-11-17. https://books.google.com/books?id=aAsbEAAAQBAJ&pg=PA11.

    APA Rakshit, Sandip; Panigrahi, Goutam (December 1995). (2026). Rakshit, Sandip; Panigrahi, Goutam (December 1995). A Hand Book of Objected Oriented Programming With Java . S. Chand Publishing. p. 11. ISBN 978-81-219-3001-7 . Wikipedia revision 1375982948, retrieved 2026-11-18. Retrieved November 25, 2026, from https://books.google.com/books?id=aAsbEAAAQBAJ&pg=PA11

  10. XML Schema Part 2: Datatypes · retrieved 2026-11-17 · rev 1375982948
    Cite this reference

    MLA "XML Schema Part 2: Datatypes." Biron, Paul V. 2026-11-17. https://www.w3.org/TR/xmlschema-2/#built-in-primitive-datatypes. Accessed 25 November 2026.

    Chicago "XML Schema Part 2: Datatypes." Biron, Paul V. 2026-11-17. https://www.w3.org/TR/xmlschema-2/#built-in-primitive-datatypes.

    APA Biron, Paul V. (2026). XML Schema Part 2: Datatypes. Retrieved November 25, 2026, from https://www.w3.org/TR/xmlschema-2/#built-in-primitive-datatypes

  11. Wikander, Jan; Svensson, Bertil (31 May 1998). Real-Time Systems in Mechatronic Applications . Springer Science & Business Media. p. 101. ISBN 978-0-7923-8159-4 . Wikipedia revision 1375982948, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1375982948
    Cite this reference

    MLA "Wikander, Jan; Svensson, Bertil (31 May 1998). Real-Time Systems in Mechatronic Applications . Springer Science & Business Media. p. 101. ISBN 978-0-7923-8159-4 . Wikipedia revision 1375982948, retrieved 2026-11-18." Wikander, Jan; Svensson, Bertil (31 May 1998). 2026-11-17. https://books.google.com/books?id=fDCNR7VwG-AC&pg=PA101. Accessed 25 November 2026.

    Chicago "Wikander, Jan; Svensson, Bertil (31 May 1998). Real-Time Systems in Mechatronic Applications . Springer Science & Business Media. p. 101. ISBN 978-0-7923-8159-4 . Wikipedia revision 1375982948, retrieved 2026-11-18." Wikander, Jan; Svensson, Bertil (31 May 1998). 2026-11-17. https://books.google.com/books?id=fDCNR7VwG-AC&pg=PA101.

    APA Wikander, Jan; Svensson, Bertil (31 May 1998). (2026). Wikander, Jan; Svensson, Bertil (31 May 1998). Real-Time Systems in Mechatronic Applications . Springer Science & Business Media. p. 101. ISBN 978-0-7923-8159-4 . Wikipedia revision 1375982948, retrieved 2026-11-18. Retrieved November 25, 2026, from https://books.google.com/books?id=fDCNR7VwG-AC&pg=PA101

  12. Declaring a NOTATION | Understanding XML Document Type Definitions · retrieved 2026-11-17 · rev 1375982948
    Cite this reference

    MLA "Declaring a NOTATION | Understanding XML Document Type Definitions." Phillips, Lee Anne (18 January 2002). 2026-11-17. https://www.informit.com/articles/article.aspx?p=24992&seqNum=5. Accessed 25 November 2026.

    Chicago "Declaring a NOTATION | Understanding XML Document Type Definitions." Phillips, Lee Anne (18 January 2002). 2026-11-17. https://www.informit.com/articles/article.aspx?p=24992&seqNum=5.

    APA Phillips, Lee Anne (18 January 2002). (2026). Declaring a NOTATION | Understanding XML Document Type Definitions. Retrieved November 25, 2026, from https://www.informit.com/articles/article.aspx?p=24992&seqNum=5

  13. Primitive - MDN Web Docs Glossary: Definitions of Web-related terms · retrieved 2026-11-17 · rev 1375982948
    Cite this reference

    MLA "Primitive - MDN Web Docs Glossary: Definitions of Web-related terms." 2026-11-17. https://developer.mozilla.org/en-US/docs/Glossary/Primitive. Accessed 25 November 2026.

    Chicago "Primitive - MDN Web Docs Glossary: Definitions of Web-related terms." 2026-11-17. https://developer.mozilla.org/en-US/docs/Glossary/Primitive.

    APA encyclopegia.org. (2026). Primitive - MDN Web Docs Glossary: Definitions of Web-related terms. Retrieved November 25, 2026, from https://developer.mozilla.org/en-US/docs/Glossary/Primitive

  14. JavaScript data types and data structures · retrieved 2026-11-17 · rev 1375982948
    Cite this reference

    MLA "JavaScript data types and data structures." 2026-11-17. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#primitive_values. Accessed 25 November 2026.

    Chicago "JavaScript data types and data structures." 2026-11-17. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#primitive_values.

    APA encyclopegia.org. (2026). JavaScript data types and data structures. Retrieved November 25, 2026, from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#primitive_values

  15. Types in Visual Basic · retrieved 2026-11-17 · rev 1375982948
    Cite this reference

    MLA "Types in Visual Basic." 2026-11-17. https://docs.microsoft.com/en-us/dotnet/visual-basic/reference/language-specification/types#primitive-types. Accessed 25 November 2026.

    Chicago "Types in Visual Basic." 2026-11-17. https://docs.microsoft.com/en-us/dotnet/visual-basic/reference/language-specification/types#primitive-types.

    APA encyclopegia.org. (2026). Types in Visual Basic. Retrieved November 25, 2026, from https://docs.microsoft.com/en-us/dotnet/visual-basic/reference/language-specification/types#primitive-types

  16. Built-in types (C++) · retrieved 2026-11-17 · rev 1375982948
    Cite this reference

    MLA "Built-in types (C++)." 2026-11-17. https://learn.microsoft.com/en-us/cpp/cpp/fundamental-types-cpp?view=msvc-170. Accessed 25 November 2026.

    Chicago "Built-in types (C++)." 2026-11-17. https://learn.microsoft.com/en-us/cpp/cpp/fundamental-types-cpp?view=msvc-170.

    APA encyclopegia.org. (2026). Built-in types (C++). Retrieved November 25, 2026, from https://learn.microsoft.com/en-us/cpp/cpp/fundamental-types-cpp?view=msvc-170

  17. Strings · The Julia Language · retrieved 2026-11-17 · rev 1375982948
    Cite this reference

    MLA "Strings · The Julia Language." 2026-11-17. https://docs.julialang.org/en/v1/manual/strings/#man-characters. Accessed 25 November 2026.

    Chicago "Strings · The Julia Language." 2026-11-17. https://docs.julialang.org/en/v1/manual/strings/#man-characters.

    APA encyclopegia.org. (2026). Strings · The Julia Language. Retrieved November 25, 2026, from https://docs.julialang.org/en/v1/manual/strings/#man-characters

  18. The char Type in Java is Broken · retrieved 2026-11-17 · rev 1375982948
    Cite this reference

    MLA "The char Type in Java is Broken." Mansoor, Umer (8 May 2016). 2026-11-17. https://codeahoy.com/2016/05/08/the-char-type-in-java-is-broken/. Accessed 25 November 2026.

    Chicago "The char Type in Java is Broken." Mansoor, Umer (8 May 2016). 2026-11-17. https://codeahoy.com/2016/05/08/the-char-type-in-java-is-broken/.

    APA Mansoor, Umer (8 May 2016). (2026). The char Type in Java is Broken. Retrieved November 25, 2026, from https://codeahoy.com/2016/05/08/the-char-type-in-java-is-broken/

  19. I/O and string instructions · retrieved 2026-11-17 · rev 1375982948
    Cite this reference

    MLA "I/O and string instructions." 2026-11-17. https://linasm.sourceforge.net/docs/instructions/cpu.php#bit. Accessed 25 November 2026.

    Chicago "I/O and string instructions." 2026-11-17. https://linasm.sourceforge.net/docs/instructions/cpu.php#bit.

    APA encyclopegia.org. (2026). I/O and string instructions. Retrieved November 25, 2026, from https://linasm.sourceforge.net/docs/instructions/cpu.php#bit

  20. Chun, Wesley (2001). Core Python Programming . Prentice Hall Professional. p. 77. ISBN 978-0-13-026036-9 . Wikipedia revision 1375982948, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1375982948
    Cite this reference

    MLA "Chun, Wesley (2001). Core Python Programming . Prentice Hall Professional. p. 77. ISBN 978-0-13-026036-9 . Wikipedia revision 1375982948, retrieved 2026-11-18." Chun, Wesley (2001). 2026-11-17. https://books.google.com/books?id=mh0bU6NXrBgC&pg=PA77. Accessed 25 November 2026.

    Chicago "Chun, Wesley (2001). Core Python Programming . Prentice Hall Professional. p. 77. ISBN 978-0-13-026036-9 . Wikipedia revision 1375982948, retrieved 2026-11-18." Chun, Wesley (2001). 2026-11-17. https://books.google.com/books?id=mh0bU6NXrBgC&pg=PA77.

    APA Chun, Wesley (2001). (2026). Chun, Wesley (2001). Core Python Programming . Prentice Hall Professional. p. 77. ISBN 978-0-13-026036-9 . Wikipedia revision 1375982948, retrieved 2026-11-18. Retrieved November 25, 2026, from https://books.google.com/books?id=mh0bU6NXrBgC&pg=PA77

  21. Olsen, Geir; Allison, Damon; Speer, James (1 January 2008). Visual Basic .NET Class Design Handbook: Coding Effective Classes . Apress. p. 80. ISBN 978-1-4302-0780-1 . Wikipedia revision 1375982948, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1375982948
    Cite this reference

    MLA "Olsen, Geir; Allison, Damon; Speer, James (1 January 2008). Visual Basic .NET Class Design Handbook: Coding Effective Classes . Apress. p. 80. ISBN 978-1-4302-0780-1 . Wikipedia revision 1375982948, retrieved 2026-11-18." Olsen, Geir; Allison, Damon; Speer, James (1 January 2008). 2026-11-17. https://books.google.com/books?id=DUQnCgAAQBAJ&pg=PA80. Accessed 25 November 2026.

    Chicago "Olsen, Geir; Allison, Damon; Speer, James (1 January 2008). Visual Basic .NET Class Design Handbook: Coding Effective Classes . Apress. p. 80. ISBN 978-1-4302-0780-1 . Wikipedia revision 1375982948, retrieved 2026-11-18." Olsen, Geir; Allison, Damon; Speer, James (1 January 2008). 2026-11-17. https://books.google.com/books?id=DUQnCgAAQBAJ&pg=PA80.

    APA Olsen, Geir; Allison, Damon; Speer, James (1 January 2008). (2026). Olsen, Geir; Allison, Damon; Speer, James (1 January 2008). Visual Basic .NET Class Design Handbook: Coding Effective Classes . Apress. p. 80. ISBN 978-1-4302-0780-1 . Wikipedia revision 1375982948, retrieved 2026-11-18. Retrieved November 25, 2026, from https://books.google.com/books?id=DUQnCgAAQBAJ&pg=PA80

  22. Hennessy, John L.; Patterson, David A. (August 2011). Computer Architecture, Fifth Edition: A Quantitative Approach (5th ed.). San Francisco, CA, USA: Morgan Kaufmann Publishers Inc. ISBN 978-0-12-383872-8 . Wikipedia revision 1375982948, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1375982948
    Cite this reference

    MLA "Hennessy, John L.; Patterson, David A. (August 2011). Computer Architecture, Fifth Edition: A Quantitative Approach (5th ed.). San Francisco, CA, USA: Morgan Kaufmann Publishers Inc. ISBN 978-0-12-383872-8 . Wikipedia revision 1375982948, retrieved 2026-11-18." Hennessy, John L. 2026-11-17. https://dl.acm.org/doi/10.5555/1999263. Accessed 25 November 2026.

    Chicago "Hennessy, John L.; Patterson, David A. (August 2011). Computer Architecture, Fifth Edition: A Quantitative Approach (5th ed.). San Francisco, CA, USA: Morgan Kaufmann Publishers Inc. ISBN 978-0-12-383872-8 . Wikipedia revision 1375982948, retrieved 2026-11-18." Hennessy, John L. 2026-11-17. https://dl.acm.org/doi/10.5555/1999263.

    APA Hennessy, John L. (2026). Hennessy, John L.; Patterson, David A. (August 2011). Computer Architecture, Fifth Edition: A Quantitative Approach (5th ed.). San Francisco, CA, USA: Morgan Kaufmann Publishers Inc. ISBN 978-0-12-383872-8 . Wikipedia revision 1375982948, retrieved 2026-11-18. Retrieved November 25, 2026, from https://dl.acm.org/doi/10.5555/1999263

  23. Kernighan, Brian W ; Ritchie, Dennis M (1978). The C Programming Language (1st ed.). Englewood Cliffs, NJ : Prentice Hall . p. 41 . ISBN 0-13-110163-3 . Wikipedia revision 1375982948, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1375982948
    Cite this reference

    MLA "Kernighan, Brian W ; Ritchie, Dennis M (1978). The C Programming Language (1st ed.). Englewood Cliffs, NJ : Prentice Hall . p. 41 . ISBN 0-13-110163-3 . Wikipedia revision 1375982948, retrieved 2026-11-18." Kernighan, Brian W ; Ritchie, Dennis M (1978). 2026-11-17. https://en.wikipedia.org/wiki/Brian_Kernighan. Accessed 25 November 2026.

    Chicago "Kernighan, Brian W ; Ritchie, Dennis M (1978). The C Programming Language (1st ed.). Englewood Cliffs, NJ : Prentice Hall . p. 41 . ISBN 0-13-110163-3 . Wikipedia revision 1375982948, retrieved 2026-11-18." Kernighan, Brian W ; Ritchie, Dennis M (1978). 2026-11-17. https://en.wikipedia.org/wiki/Brian_Kernighan.

    APA Kernighan, Brian W ; Ritchie, Dennis M (1978). (2026). Kernighan, Brian W ; Ritchie, Dennis M (1978). The C Programming Language (1st ed.). Englewood Cliffs, NJ : Prentice Hall . p. 41 . ISBN 0-13-110163-3 . Wikipedia revision 1375982948, retrieved 2026-11-18. Retrieved November 25, 2026, from https://en.wikipedia.org/wiki/Brian_Kernighan

  24. Data Types - The Rust Programming Language · retrieved 2023-10-16 · rev 1375982948
    Cite this reference

    MLA "Data Types - The Rust Programming Language." a b c d e "Data Types - The Rust Programming Language". 2023-10-16. https://doc.rust-lang.org/book/ch03-02-data-types.html. Accessed 25 November 2026.

    Chicago "Data Types - The Rust Programming Language." a b c d e "Data Types - The Rust Programming Language". 2023-10-16. https://doc.rust-lang.org/book/ch03-02-data-types.html.

    APA a b c d e "Data Types - The Rust Programming Language". (2023). Data Types - The Rust Programming Language. Retrieved November 25, 2026, from https://doc.rust-lang.org/book/ch03-02-data-types.html

  25. Optimizing software in C++ · retrieved 2026-11-17 · rev 1375982948
    Cite this reference

    MLA "Optimizing software in C++." a b Fog, Agner. 2026-11-17. https://www.agner.org/optimize/optimizing_cpp.pdf#page=29. Accessed 25 November 2026.

    Chicago "Optimizing software in C++." a b Fog, Agner. 2026-11-17. https://www.agner.org/optimize/optimizing_cpp.pdf#page=29.

    APA a b Fog, Agner. (2026). Optimizing software in C++. Retrieved November 25, 2026, from https://www.agner.org/optimize/optimizing_cpp.pdf#page=29

  26. a b Khurana, Rohit. Data and File Structure (For GTU), 2nd Edition . Vikas Publishing House. p. 2. ISBN 978-93-259-6005-3 . Wikipedia revision 1375982948, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1375982948
    Cite this reference

    MLA "a b Khurana, Rohit. Data and File Structure (For GTU), 2nd Edition . Vikas Publishing House. p. 2. ISBN 978-93-259-6005-3 . Wikipedia revision 1375982948, retrieved 2026-11-18." a b Khurana, Rohit. 2026-11-17. https://books.google.com/books?id=s0JDDAAAQBAJ&pg=PA2. Accessed 25 November 2026.

    Chicago "a b Khurana, Rohit. Data and File Structure (For GTU), 2nd Edition . Vikas Publishing House. p. 2. ISBN 978-93-259-6005-3 . Wikipedia revision 1375982948, retrieved 2026-11-18." a b Khurana, Rohit. 2026-11-17. https://books.google.com/books?id=s0JDDAAAQBAJ&pg=PA2.

    APA a b Khurana, Rohit. (2026). a b Khurana, Rohit. Data and File Structure (For GTU), 2nd Edition . Vikas Publishing House. p. 2. ISBN 978-93-259-6005-3 . Wikipedia revision 1375982948, retrieved 2026-11-18. Retrieved November 25, 2026, from https://books.google.com/books?id=s0JDDAAAQBAJ&pg=PA2

  27. Calling conventions for different C++ compilers and operating systems: Chapter 3, Data Representation · retrieved 2010-08-29 · rev 1375982948
    Cite this reference

    MLA "Calling conventions for different C++ compilers and operating systems: Chapter 3, Data Representation." a b Fog, Agner (2010-02-16). 2010-08-29. http://www.agner.org/optimize/calling_conventions.pdf. Accessed 25 November 2026.

    Chicago "Calling conventions for different C++ compilers and operating systems: Chapter 3, Data Representation." a b Fog, Agner (2010-02-16). 2010-08-29. http://www.agner.org/optimize/calling_conventions.pdf.

    APA a b Fog, Agner (2010-02-16). (2010). Calling conventions for different C++ compilers and operating systems: Chapter 3, Data Representation. Retrieved November 25, 2026, from http://www.agner.org/optimize/calling_conventions.pdf

  28. ISO/IEC 9899:1999 specification, TC3 (PDF) . p. 255, § 6.2.5 Types . Wikipedia revision 1375982948, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1375982948
    Cite this reference

    MLA "ISO/IEC 9899:1999 specification, TC3 (PDF) . p. 255, § 6.2.5 Types . Wikipedia revision 1375982948, retrieved 2026-11-18." ISO/IEC 9899:1999 specification, TC3 (PDF). 2026-11-17. https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf. Accessed 25 November 2026.

    Chicago "ISO/IEC 9899:1999 specification, TC3 (PDF) . p. 255, § 6.2.5 Types . Wikipedia revision 1375982948, retrieved 2026-11-18." ISO/IEC 9899:1999 specification, TC3 (PDF). 2026-11-17. https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf.

    APA ISO/IEC 9899:1999 specification, TC3 (PDF). (2026). ISO/IEC 9899:1999 specification, TC3 (PDF) . p. 255, § 6.2.5 Types . Wikipedia revision 1375982948, retrieved 2026-11-18. Retrieved November 25, 2026, from https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf

Cite this article

MLA

"Primitive data type." encyclopegia.org, 2026, https://encyclopegia.org/wiki/primitive-data-type. Accessed 25 November 2026.

Chicago

"Primitive data type." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/primitive-data-type.

APA

encyclopegia.org. (2026). Primitive data type. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/primitive-data-type

Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

blood type

stub · references available

Type 69 tank

stub · references available

solar-type star

stub · references available

Adobe Type

stub · references available

Audi Type B

stub · references available

Audi Type G

stub · references available

digital data

stub · references available

Audi Type M

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1375982948 · 0.5 · snapshot enwiki-001375982948

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.