answersLogoWhite

0


Best Answer

The fundamental types of C:

A Boolean type: bool

A character type: char

An integer type: int

A floating-point type: float, double and long double

No type: void

The character and integer types can be modified using the signed/unsigned and short/long type modifiers. If no type is specified with a modifier, int is assumed. E.g., a short implies a short int.

In addition, a user can define additional types:

Data structures: e.g., struct and union

Enumeration types: enum

Also, for any given type, T, a user can define other types using declarator operators:

A pointer type: T*

An array type: T[]

The Boolean, character and integer types are collectively called integral types. The integral and floating-point types are collectively called arithmetic types. Fundamental types, pointers and arrays are collectively called built-in types. Enumerations and data structures are called user-defined types. Note that all user-defined types must be declared by the user before they can be used, whereas all built-in types are available for use without prior declaration.

The integral and floating point types are provided in a variety of sizes to give the programmer a choice of the amount of storage consumed, the precision and the range available for computations. The assumption is that a computer provides bytes for holding characters, words for holding and computing integer values, some entity for floating-point computation and addresses for referring to all these entities. The fundamental types together with pointers and arrays present these machine-level notions to the programmer in a reasonably implementation-independent manner.

For most applications, we could use bool for logical values, char for characters, int for integer values, and double for floating point values. The remaining fundamental types are variations for optimisations, special needs and compatibility that are best ignored until such needs arise.

User Avatar

Wiki User

6y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How many data types are supported by c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the different data types suppourted by c.give example?

data types supported by "C" are int , float , char , long , double , uint


Describe the four basic data types in c?

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


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

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


Which of these elements is NOT common to all programming languages. A. set of operators B. structured classes C. supported data types or D. rules of syntax?

B. C, for example does not have structured classes.


What types of data used in algorithm?

Whatever data you need. If you need the algorithm to operate with many different types of data, and you are programming in C++, you could use generic programming practices and use templates.


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


What is turbo c data types?

The usual C datatypes, nothing special.


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.


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..


Types of data in turbo C programming?

The primitive data types in C include:[signed|unsigned] char[signed|unsigned] short[signed|unsigned] int[signed|unsigned] long[signed|unsigned] long longfloatdoublelong doubleEnumerations (enum) and arrays may also be considered to be primitive types.


What are arreys in c?

arrays in C are the data types which have collection of same type of data together store a fixed-size s of elements .


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++.