answersLogoWhite

0


Best Answer

C is not an object oriented programming language. As such there are no class data types in C.

User Avatar

Laurence Aufderhar

Lvl 13
2y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

1.Primary data type:

integer type: int and char.

floating point type: float and double.

2.Derived data type:

long int, short int, unsigned int, unsigned lond int, unsigned short int,

long double.

3.Secondary data type:

arrays, pointers, structure, union and enum.

This answer is:
User Avatar

User Avatar

Wiki User

7y ago

The basic data types in C are int, char, float, double and bool, plus void to represent no type.

A char is the smallest unit of addressable storage and has a length of 1 byte (the length of a byte is machine-dependent, but is typically 8-bits long). All other types are measured relative to a char but are implementation defined. Use the sizeof() function to determine the actual length.

A char may be explicitly modified with the signed or unsigned modifiers (signed char and unsigned char), however these modified types are independent of a plain char. Whether a plain char is signed or unsigned is implementation-defined. All three have the same length (1 byte).

An int can be modified in a variety of ways using the short, long, signed and unsigned modifiers. Note that when a modifier is used without a type, an int is implied, thus a long implies a long int while signed implies a signed int. As with char, a plain int is independent of modified int types.

short - at least as long as a char

int - at least as long as a short

long - at least as long as an int

long long - at least as long as a long

All of the above can be further modified with signed or unsigned modifiers.

float - single-precision real, typically two chars in length (16-bits)

double - double-precision real, at least as long as a float.

The double type can also be modified with long and is at least as long as a double. Real numbers are always signed (the signed/unsigned modifiers cannot be used).

All types can be modified with the post-fix * operator to produce a pointer variable of the given type. All pointer types for a given implementation have the same length (e.g., 32-bits on a 32-bit system). Pointers to unknown types are represent by void*. You may take the address of an unknown type, but to perform pointer arithmetic or dereferencing operations you must cast the pointer to an appropriate type.

All types can be modified with the suffix operator [] to create an array of that type.

All other types are either type aliases (such as size_t meaning unsigned long) or user-defined types (struct or union types).

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

Data types are types of Data stored in memory.

Like 4 is integer so store in int,

and 4.5 is a floating point so store it in float.

Various data types in C are:

void

float

double

long

int

short

char

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

the following types exist in c: int float double char void enum

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

basic data types in c language are:

int(signed int)

short int

long int

unsigned int

char

float

double

long double

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

there are 4 types of data types.char, integer,float,double.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

int

char

float

string

double

bool

decimal

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

Character, Integer, Float, Double.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the data types provided in c language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is primare datatype in c?

primary datatypes means the data types which are provided by developer of language himself like int,float,double,char are the primary data types in c language where as the String,array are nothing but the derived data types. for Ex.we derived the String data type from char datatype using array system.


What is the range of data types in C programming language?

The ranges for all data types in C are implementation-defined.


How do you create a data type of c language in power point?

Presentations do not have data-types, you might have misunderstood somethings.


What is the Pascal programming language data structure?

In Pascal, data structures are implemented with recorddata types. A record is synonymous with the structdata type in C, or the class data type in C++.


What are derived data types in the C language?

You seem to have lost your text book so I am giving you a link where you can study data types, including derived data types.


Class data types in c?

The data types indicate the type of values that can be stored. The primary data types in c are:1. int, short, long, long long - used for integer values2. float, double - used for storing floating point numbers3. char - used for storing ASCII characters


Describe the four basic data types in c?

Describe the basic data types in C Describe the basic data types in C


What are the 'data types' provided in c?

1. void 2. int 3. float 4. double 5. char


What is datatype.Define various types of data types?

In c language data types are used to specify the tye of data.for ex:int a;It means "a" is a variable of type integer.There are two types of data types in c.They areprimary data typessecondary data typesprimary data types are the built in data types and secondary data types are the user defined data types.eg for primary data types are int,float,char,long,double..and for secondary are arrays,structures,pointers,unions..


Is c plus plus an object oriented language or an object based language?

C++ is object-oriented. It is not object-based because, like C before it, C++ supports the principal of primitive data types, which are not object-based.


What is the meaning of identifiers in c language?

The NAMES that identify or represent the variables, constants, data types, functions and labels in C language.. They are mere(only) NAMES, that help in IDENTIFYING variables, data types, constants, functions and labels to differentiate them from each other.. A good identifier must be descriptive but short..


What are the basic parts of the c language?

That would include header files, data types, loops, functions, pointers, arrays