C++ BASICS EXPLAINED PART 3:DATA TYPES & VARIABLES
DATA TYPES WHAT ARE DATA TYPES? Def. Data types are used to define some sets or type of data and ways to handle it. Data are of many types such as: 1. Integers data are represented by numbers without fraction (e.g. -213, 11). 2. Real data are represented by numbers with fraction (e.g. -21.3,2.2). 3. Character data are represented within single quotes such as ‘a’. 4. String data are represented under double quotes such as “ I am tom”. WHAT ARE THE DIFFERENT TYPES OF DATA TYPE AVAILABLE IN C++? FUNDAMENTAL TYPES DATA DATA TYPES SIZE(in bytes ) 1. Integers int 2 (-32768 to 32767) 2. Characters char 1 (-128 to 127) 3. Floating-point float 4 (3.4x10 -38 to 3.4x10 38 -1) 4. Double floating- point double ...