Data Type Modifiers in C - C Programming Tutorial 12

Pubblicato il: 16 giugno 2017
sul canale di: ChidresTechTutorials
9,015
133

Notes for You:: Data Type Modifiers in C - C Programming Tutorial 12
are used to modify the properties of primitive data types (except float and void data types) according to application requirements; so that we can precisely utilize the computer memory.

With the help of data type modifiers we can
modify the size (i.e. the amount of memory to be allocated)
modify the sign (i.e. decide only +ve or both +ve and –ve values can be stored)

There are 4 data type modifiers:
short
long
signed (is the default modifier for any data type)
unsigned

Note:
if you modify the size or sign of primitive data types then the possible range of values can be stored also changes.

To modify properties of primitive data types we precede them by data type modifiers.

Data Type: char or signed char
Size: 1 byte
Range: -128 to 127

Data Type: unsigned char
Size: 1 byte
Range: 0 to 255

Data Type: int or signed int
Size: 2 or 4 bytes
Range: (-32,768 to 32,767 )
or
(-2,147,483,648 to 2,147,483,647)

Data Type: unsigned int
Size: 2 or 4 bytes
Range: (0 to 65535) or (0 to 4294967295)

Data Type: short int or signed short int
Size: 1 or 2 bytes
Range: (-128 to 127 ) or (-32,768 to 32,767 )

Data Type: unsigned short int
Sie: 1 or 2 bytes
Range: (0 to 255 ) or (0 to 65535)

Data Type: long int or signed long int
Size: 4 or 8 bytes
Range: (-2,147,483,648 to 2,147,483,647)
or
(-9223372036854775808 to 9223372036854775807)

Data Type: unsigned long int
Size: 4 or 8 bytes
Range: (0 to 4294967295)
Or
(0 to 18446744073709551616)

Data Type: float
Precision: 6 to 7 digits
Size: 4 bytes
Range: 1.2E-38 to 3.4E+38

Data Type: double
Precision: 14 to 15 digits
Size: 8 bytes
Range: 2.3E-308 to 1.7E+308

Data Type: long double
Precision: 18 digits
Size: 12 bytes
Range: 1.5E-312 to 1.5E+312

=========================================

Follow the link for next video:
   • Find size of all Data types in C - C ...  

Follow the link for previous video:
   • Find Range of Data types in C - C Pro...  

=========================================

C Programming Tutorials Playlist:
   • C Programming Tutorials  

=========================================
Watch My Other Useful Tutorials:-

Computer Programming Fundamentals Playlist:-
   • Computer Programming Fundamentals  

C Practical LAB Exercises Playlist:-
   • C Practical Programs  

C++ Tutorials Playlist:
   • C++ Tutorials  

=========================================

► Subscribe to our YouTube channel:
   / chidrestechtutorials  

► Visit our Website:
https://www.chidrestechtutorials.com

=========================================
Hash Tags:-
#ChidresTechTutorials #CProgramming #CProgrammingTutorial


In questa pagina del sito puoi guardare il video online Data Type Modifiers in C - C Programming Tutorial 12 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato ChidresTechTutorials 16 giugno 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 9,015 volte e gli è piaciuto 133 spettatori. Buona visione!