Computer Science, asked by dhamigenius, 9 months ago

How the ranges of various basic data types are decided in C? Give examples for basic data

types like: Unsigned char, Signed char, unsigned integer, and Signed integer. Also represent

how floating point values are stored in the computer memory in C?​

Answers

Answered by poonambajpry6
7

Answer:

Data types in c refer to an extensive system used for declaring variables or functions of different types. The type of a variable determines how much space it occupies in storage and how the bit pattern stored is interpreted.

Answered by arshaarunsl
0

Answer:

  • The number of bytes allocated for storage determines the size or range of the data that can be stored in an integer data type.
  • Because a bit can have either a value of 0 or 1, you can compute how many alternative values there are by multiplying 2n by the total number of bits.
  • This group consists of (a) Pointer types, (b) Array types, (c) Structure types, (d) Union types, and (e) Function types.

Integer Types.

Type                        Storage size                                                Value range

char                              1 byte, signed or unsigned, -128 to 127 or 0 to 255

signed char 1 bytes from -128 to 127 32,768 to 32,767 or -2,147,483,648 to 2,147,483,647 int 2 or 4 bytes

  • The significand and exponent are stored in order to encode floating-point numbers (along with a sign bit). The high-order bit also specifies sign, with 0 denoting a positive number and 1 a negative one. The exponent is stored in the following 8 bits.

#SPJ3

Similar questions