answersLogoWhite

0

What are primitive data type?

Updated: 10/17/2021
User Avatar

Wiki User

6y ago

Best Answer

In a computer language, Primitive data types are the fundamental or built-in data types the language will manipulate without a subroutine call, type modifier, or object.

For example, in C they are: int, char, float, and double.

In Java they are: byte, short, int, long, float, double, Boolean, and char.

Below the language level, Primitive data types are that which are supported or implemented directly in hardware or through microcode. For example, some computers directly handle strings with length up to the database record capacity through microcode.

These Primitive types can be combined with type modifiers for Int (short, long), pointers, arrays, structs, and unions into many different "complex" data types handled by the programming language.

User Avatar

Jonathon Willms

Lvl 10
2y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are primitive data type?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why arrays are not primitive data type?

An array is a primitive data type. It is the element type that may or may not be primitive.


Is string is primitive or user defined data type?

String - is primitive data typestring - is user defined data type


What is different between primitive date type and non primitive data type in c plus plus programming language?

A primitive data type is built into the language - int, char, long, etc. A non-primitive data type is am abstract data type that is built out of primitive data types - linked list, queue, stack, etc.


Where string is primitive data type of string data type?

String is not primitive data. Only char,int,double,and boolean are!


What are different data type in c?

primitive non primitive


Is string arr a non primitive data type?

Depends on the context of the question you were asking from, there are 2 distinct answers: Yes and NO. In the narrowest definition, any array is NOT a primitive data type in C#. Hence a string array is NOT a primitive data type in that context. A string itself, however, is a primitive data type. Some developers would like to extend the definition of "primitives" into the arrays, collections, and Enumeration. Thus, in this context, an array of string IS a primitive data type.


Can you store non primitive data type in the array list?

Yes you can store non primitive data type variables in an array. String is a non primitive data type. You can declare a string array as: String a[]=new String[10];


Non primitive data type?

Struct or array.


What is primitive and composite data types in DBMS?

a composite data type is any data type which can be constructed in a program using its programming language's primitive data types and other composite types. The act of constructing a composite type is known as composition.


Should element in an array must be of primitive data type?

No, it can be array, structure or union as well.


What is size of char far data type?

char is a primitive data type and depends on the programming language and the operating system.


What happens when you add primitive data type into a collection in java?

how do you get the value of the parameter in the applet