answersLogoWhite

0

What is the data type in c?

User Avatar

Anonymous

12y ago
Updated: 8/20/2019

C is known as a "typed language", because variables must have "types" to tell the compiler how to deal with them when it comes to using operators, amongst other things.

For instance, integer types, which like mathematics have no decimal point or fractional part, can use the % (modulus) operator and bitwise operators (| (or), & (and), ^ (xor)).

Floating point numbers have a decimal point and fractional part (which can be zero), and cannot use these operators because support doesn't exist for them.

Strings in C cannot use operators at all. In fact, strings are just arrays of characters (the "char" type).

For more information on C data types, see the related links below.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What are different data type in c language?

there are three data type ic c language. they are, 1.primary data type: a.integer type b.floating point type c.character type d.void type 2.derived data type eg; array, pointer 3.userdefined data type eg; structer and union


Suggest the data type that can be used for initializing alphanumeric elements in a c programmed array .Also tell you the compiler that can understand the data type.?

Data Type : - It is used to identify the type of data. 'C' Language has a large no of data type, Thus it is also known by rich data type language: Data type are generally classified in three group: 1: Fundamental data type 2 Derived Data Type : 3 Use defined data type; 1 Fundamental data type: Fundamental data type includes i) The int data type: The data type int can store integer value only for eg. 14, 45, 78 declaration: int a,b; here we can store any value in variable a & b. ii) Char Data Type : The data type char can store character value only which is enclosed with single quote for e.g. 'c' declaration : char x = 'c' iii) Float Data Type:


What is the data type int?

Data-type (short for integer).


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


Why String data type cannot be used as built-in data type in C?

Because it isn't a built-in data-type in C. Other examples that aren't built-in data-types: complex numbers, binary trees, associative-arrays.


What is int in 'c' language?

data-type


The data type of an item price?

I am assuming that the question is "What would the best data type to represent a price".Although this is open for debate, in Java I think that the best data type for a price is double and the best data type in C# to be decimal.I hope this answers your question.


What is the different type of data type in c classified it?

float,int,char


What are the valid type of data that the main can return in c language?

Type 'int'


User defined data type in c plus plus?

Use "typedef" : both in C and C++.


What is difference between '1' and 1 as for us a computer is concerned with respect to c plus plus?

When you type '1' in a C++ program, it is considered to be of character data type(char). When you type 1, it is considered to be of integer data type.


Abstruct Data Type of complex number using c?

you answer me