basic data type which can be instanciated and used with the predefined operations of a programming language, or assembled as a building block together with other instances of any type to create more complex composite data 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 … Wikipedia
🌐
Wikipedia
en.wikipedia.org › wiki › Primitive_data_type
Primitive data type - Wikipedia
2 weeks ago - In C and C++, there are minimally four types, char, int, float, and double, but the qualifiers short, long, signed, and unsigned mean that C contains numerous target-dependent integer and floating-point primitive types. C99 allowed the modifier long to be used twice in combination with int ...
🌐
Dspmuranchi
dspmuranchi.ac.in › pdf › Blog › basic data types in c.pdf pdf
What is a Data Type in C? Basic Data Types
The format specifier for a single character is ‘%c’, whereas, a string is represented by · ‘%s’ format specifier. Derived Data Types · The primitive or basic data types are used to store single values of different forms, but · what if you need to store more values of the same data type?
🌐
GNU
gnu.org › software › c-intro-and-ref › manual › html_node › Primitive-Types.html
Primitive Types (GNU C Language Manual)
Next: Constants, Previous: Order of Execution, Up: GNU C Manual [Contents][Index] This chapter describes all the primitive data types of C—that is, all the data types that aren’t built up from other types.
🌐
Scribd
scribd.com › document › 727088821 › Unit-1-Programming-in-C-and-Primitive-Data-Types-pptx
C Programming: Primitive Data Types | PDF | Integer (Computer Science) | Data Type
Unit 1 Programming in C and Primitive Data Types.pptx - Free download as PDF File (.pdf), Text File (.txt) or read online for free. The document discusses the C programming language including its background, structure, comments, identifiers, variables, constants, data types, and sizeof operator.
🌐
GeeksforGeeks
geeksforgeeks.org › c language › data-types-in-c
Data Types in C - GeeksforGeeks
Different data types also have different ranges up to which can vary from compiler to compiler. If you want to know more about ranges refer to this Ranges of Datatypes in C. Note: The long, short, signed and unsigned are datatype modifier that can be used with some primitive data types to change the size or length of the datatype.
Published   October 18, 2025
🌐
Topperworld
topperworld.in › wp-content › uploads › 2023 › 08 › Data-Type-in-C.pdf pdf
Data Type in C
Primary data types in C are of 4 · types: int, char, float, and double.  Here are the five primitive or primary data types that one can find in C · programming language:  Integer – We use these for storing various whole numbers, such as 5, 8, 67, 2390, etc.
🌐
Manuelradovanovic
manuelradovanovic.com › 2025 › 02 › understanding-primitive-data-types-in-c.html
MANUEL RADOVANOVIĆ : Understanding Primitive Data Types in the C Programming Language
Master C's primitive types (int, float, char) and how to use them effectively. Boost your C programming skills with this essential guide.
🌐
Carnegie Mellon University
cs.cmu.edu › ~mrmiller › 15-110 › Handouts › primitiveData.pdf pdf
Primitive Data Types 15-110 Summer 2010 Margaret Reid-Miller
Primitive Data Types · 15-110 Summer 2010 · Margaret Reid-Miller · Summer 2010 · 15-110 (Reid-Miller) 2 · Data Types · • Data stored in memory is a string of bits (0 or 1). • What does 1000010 mean? 66? 'B'? 9.2E-44? • How the computer interprets the string of bits ·
Find elsewhere
🌐
MakeUseOf
makeuseof.com › home › programming › primitive data types in c: a beginner's guide
Primitive Data Types in C: A Beginner's Guide
September 12, 2021 - In this article, you'll learn the seven primitive types in C. If you need to store an integer value in a variable, you can declare it as one of the following three types: int, short, or long.
🌐
C Language Basics
clanguagebasics.com › home › c language tutorial › data types in c: primitive data types in c language
Data Types in C: Primitive Data Types in C Language - C Language Basics
December 25, 2018 - Data types in C programming language enables the programmers to appropriately select the data as per requirements of the program and the associated operations of handling it. Data types in c language can be broadly classified as: Primitive Data Types User Defined Data Types, for example, enum, ...
🌐
Codecademy
codecademy.com › docs › data types
C | Data Types | Codecademy
May 15, 2024 - These data types are mostly numeric (integers, doubles, floating-point numbers, etc.) and can be used for arithmetic operations like subtraction and division. Values that use the void keyword (for no data) are also regarded as primitive data types.
Top answer
1 of 3
10

The answer is no, and for 2 reasons.

  1. The notion of primitive types in Java exists by opposition to object types. This has no sense in C which is not an object language.
  2. C intends to be as efficient as possible on any architecture, from 16 or even 8 bits microcontrollers to 64 bits platforms. For that reason the int type is generally chosen as the natural type for the architecture provided it contains at least 16 bits. On the other hand, Jave targets maximum portability and fixes the size of all its types.

So even if the list on Wikipedia looks large, it is (unfortunately...) accurate.

2 of 3
4

C appears to have many, many types, but what if any are considered primitive types.

The Java term "primitive type" distinguishes from reference types. C has no direct analog of Java's reference types, so no need to draw such a distinction.

C does, however, define several categories of types, and among those, the basic types are a reasonably good analogue of Java's primitive types. This category comprises char, the signed and unsigned integer types, and the floating[-point] types. It is ultimately from these, the enumerated types, and type void that all other types are derived, including array types, structure and union types, pointer types, atomic types, and function types.

The basic types can include implementation-defined types, and therefore cannot be exhaustively listed, but those defined by the language spec are:

char

The standard signed integer types
signed char, short int, int, long int, long long int

The standard unsigned integer types
_Bool, unsigned char, unsigned short int, unsigned int, unsigned long int, unsigned long long int

The real floating types
float, double, long double

The complex types
float _Complex, double _Complex, long double _Complex

This is covered in section 6.2.5 of the language spec.

It should be noted that whereas Java specifies the the size and representation of its primitive types, C leaves some of those details of its basic types to implementations, placing constraints on their ranges of representable values and other properties without specifying exact details.

C appears to have many, many types

C has an unbounded number of types, as it provides for types to be derived from other types. The same applies to Java. Ignoring implementation-defined extension types, C has more than twice as many basic types as Java has primitive types, but that's still manageable, especially given the way they are organized.

However, C also has a mechanism for defining type aliases, and a whole family of standard type aliases, and these can make it appear that there are more types than really there are.

🌐
Princeton
cs.princeton.edu › courses › archive › fall14 › cos217 › precepts › 03simplepgms › datatypes.pdf pdf
Princeton University COS 217: Introduction to Programming Systems
C Primitive Data Types · Type: int · Description: A (positive or negative) integer. Size: System dependent. On nobel with gcc217: 4 bytes. Example Variable Declarations: int iFirst; int iSecond, iThird; signed int iFourth; Example Literals (assuming size is 4 bytes): C Literal ·
🌐
Scribd
scribd.com › presentation › 919965377 › Primitive-Data-Types-in-C
Primitive Data Types in C | PDF
Please check your connection, disable any ad blockers, or try using a different browser.
🌐
BYJUS
byjus.com › gate › data-types-in-c
Data Types in C
February 16, 2024 - For instance, the long int, short int, unsigned int, signed int, etc., are all very valid data types in the C programming language. Now, if we combine all the modifiers mentioned above with the five primitive or primary data types, then it will result in the formation of the following data types:
🌐
Codeforwin
codeforwin.org › home › data types in c programming
Data types in C programming - Codeforwin
July 20, 2025 - C language supports four primitive types – char, int, float, void. Primitive types are also known as pre-defined or basic data types.
🌐
Medium
medium.com › @vijayaneraye › basics-of-c-programming-for-beginners-part-iii-4143b1b37691
Basics of C Programming for Beginners- Data types in C (Part-III) | by Vijay Aneraye | Medium
December 27, 2023 - Four main types of primary/basic data types are: a. Integer b. Float c. Char d. Void · These are further classified short, long, signed and unsigned data types in C.
Top answer
1 of 8
33

It kind of depends on the language.

For example, in languages like C and C++, you have a number of built-in scalar types - int, float, double, char, etc. These are "primitive" in the sense that they cannot be decomposed into simpler components. From these basic types you can define new types - pointer types, array types, struct types, union types, etc.

Then you have a language like old-school Lisp, where everything is either an atom or a list. Again, by the above definition, an atom is "primitive" in the sense that it cannot be decomposed into something simpler.

Edit

As far as I'm concerned, the terms "primitive", "basic", and "built-in" are pretty much interchangeable. If you want to get really pedantic, though, you can distinguish between types that are "built-in" (those explicitly provided by the language definition) and types derived from the built-in types that are still "primitive" or "basic" in that they cannot be decomposed into simpler elements. C's typedef facility allows you to create new type names for existing types. Ada allows you to create new scalar types that have constraints on them. For example, you can derive a Latitude type from the built-in floating type, with the constraint that it can't take on values outside the range [-90.0, 90.0]. It's still a primitive or basic type in that it cannot be broken down into any simpler components, but since it's user-defined, it's not considered a "built-in" type.

Again, these concepts are a little fuzzy, and it really depends on context. For example, the notion of a "built-in" type is meaningless for a typeless language like BLISS.

2 of 8
20

From the Java perspective:

In Java, there is a very clear distinction between primitive and non-primitive types.

A variable of a primitive type directly contains the value of that type (in other words, they are value types).

A variable of a non-primitive type doesn't contain the value directly; instead, it is a reference (similar to a pointer) to an object. (It is not possible in Java to create user-defined value types).

Java has eight primitive types: byte, short, int, long, char, boolean, float and double. Anything else is a non-primitive type.

🌐
Simplilearn
simplilearn.com › home › resources › software development › learn what are data structures in c and their uses
Learn What Are Data Structures in C and Their Uses | Simplilearn
July 31, 2025 - Know what are data structures, types of data structures like primitive/non-primitive, static/dynamic, data structure array, stack, queue & much more in detail with examples.
Address   5851 Legacy Circle, 6th Floor, Plano, TX 75024 United States