answersLogoWhite

0

By basic types you presumably mean primitive types or built-in types. These include char, int, long, short, wchar_t, float, double and bool, amongst others. Most are simply variations of each other, but their lengths are implementation dependant. The only exception is char which is always 1 byte in length.

User-defined types are those you yourself define or are defined for you. These include typedefs, enums, classes, structs and unions, but can also include some implementation-specific built-in types and all third-party types. Regardless, all user-defined types build upon the primitive data types or other user-defined types. In the case of class and struct types, methods (or member functions) can be associated with those types, thus combining data and the specific methods that act upon that data into a single entity. Objects are specific instances of a class or struct.

A derived type is a class (or struct) which inherits from another class (or struct). A derivative cannot inherit from a primitive, enum or union. Derived types are also, by definition, user-defined types.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is the difference between visual basic and visual c?

The programming language: Visual Basic is a BASIC-like (or BASIC-derived) language, Visual C is... well C.


What are basic quantities and derived quantities?

Basic quantities are physical quantities that are independent and cannot be defined in terms of other physical quantities, such as length, time, and mass. Derived quantities, on the other hand, are physical quantities that are defined in terms of one or more basic quantities, such as speed, acceleration, and force.


What is the difference between elementary level and basic level?

what is the difference between elementary and basic


What is the basic difference between fillet and radius?

no difference


What are the difference between Basic Salary and Net pay?

can u pls give me the difference between basic and net pay


What is difference between basic command and statement?

difference between command and statement


What is the basic difference between C?

Nothing.


Difference between pascal and basic?

Kgd


What is the difference between basic earning per share and adjusted earning per share?

what is the difference between basic earning per and adjusted earning per share?


What is the basic difference between Duel Core Processer and Core 2 Deu Processer?

What is the basic difference between Duel Core Processer and Core 2 Deu Processer?


What are basic earnings per share?

What is the difference between basic and diluted earnings per share?


What is the basic difference between crust and core?

The basic difference is the crust is the outer surface, while the core is the centre. We live on the Earth's crust.