Posts

C++ BASICS EXPLAINED PART 3:DATA TYPES & VARIABLES

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

C++ BASICS EXPLAINED PART 2-TOKEN IN C++

WHAT ARE TOKENS?   Def. Tokens are set of character set having some individual meaning such as letters,digit ,text ,punctuation and words. TOKENS IN C++ KEYWORDS IDENTIFIERS OPERATORS LITERALS PUNCTUATORS WHAT ARE KEYWORDS? Def.   keywords are reserved words which are used to give some special meaning while using in compiler for programming. You cannot modify the keywords. C++ KEYWORDS/RESERVE WORDS int float long short double enum bool void struct union typedef if else for while do case break continue return goto switch default new delete class private protected public friend this try throw catch using namespace template sizeof inline asm operator static ...