Skip to main content

Posts

Data Types and modifiers In C++

Data types in C++ Data Types In C++ In computer programming, a data type or simply type is an attribute of data that tells the compiler or interpreter how the programmer intends to use the data. It tells about the size and behavior of data. While writing any code we may need to store our data in different forms and of different size. To do this we need different variables of different data types. e.g if we want to store numbers we may need different data type than that of we required to store alphabets.  When we store something, it means we are reserving space from computer memory. Different data types occupies different memory spaces. If we don't know about them then we may fail to built robust program. so lets see what are the data types that C++ supports and what are their keywords . Primary(Built-in) Data Types: character integer floating point double floating point boolean wide character User Defined Data Types: Structure Union Class Enumeration Derived Data Types: Arra...

Keywords in C++

Keywords in C++ Keywords in C++ Keywords can be referred as the reserved words or predefined words that carry some fixed meaning and task in our program. There is fixed number of keywords in C++.They can neither be modified nor can be used as Identifiers in program. We need not to define keywords , their meaning and task is already known to the compiler. Following is the list of keywords in C++: asm else new this auto enum operator throw bool explicit private true break export protected try case extern public typedef catch false register typeid char float reinterpret_cast typename class for return union const friend short unsigned const_cast goto signed using continue if sizeof virtual default inline static void delete int static_cast volatile do long ...