Basic Data types: The basic data types are integer-based and floating-point based. C++ language supports both signed and unsigned literals.
The memory size of basic data types may change according to 32 or 64 bit operating system.
Let's see the basic data types. It size is given according to 32 bit OS.
Data Types | Memory Size | Range |
---|---|---|
char | 1 byte | -128 to 127 |
signed char | 1 byte | -128 to 127 |
unsigned char | 1 byte | 0 to 127 |
short | 2 byte | -32,768 to 32,767 |
signed short | 2 byte | -32,768 to 32,767 |
unsigned short | 2 byte | 0 to 32,767 |
int | 2 byte | -32,768 to 32,767 |
signed int | 2 byte | -32,768 to 32,767 |
unsigned int | 2 byte | 0 to 32,767 |
short int | 2 byte | -32,768 to 32,767 |
signed short int | 2 byte | -32,768 to 32,767 |
unsigned short int | 2 byte | 0 to 32,767 |
long int | 4 byte | |
signed long int | 4 byte | |
unsigned long int | 4 byte | |
float | 4 byte | |
double | 8 byte | |
long double | 10 byte |
Derived Data Types: The data-types that are derived from the primitive or built-in datatypes are referred to as Derived Data Types. These can be of four types namely:- Function
- Array
- Pointer
- Reference
C++ Keywords(की वर्ड )
A keyword is a reserved word. You cannot use it as a variable name, constant name etc. A list of 32 Keywords in C++ Language which are also available in C language are given below.
auto | break | case | char | const | continue | default | do |
double | else | enum | extern | float | for | goto | if |
int | long | register | return |
short
| signed | sizeof | static |
struct | switch | typedef | union | unsigned | void | volatile | while |
C++ Operators(ऑपरेटर्स )
An operator is simply a symbol that is used to perform operations. There can be many types of operations like arithmetic, logical, bitwise etc.
There are following types of operators to perform different types of operations in C language.
- Arithmetic Operators(अर्थमेटिक ऑपरेटर्स )
- Relational Operators(रेलशनल ऑपरेटर्स)
- Logical Operators(लॉजिकल ऑपरेटर्स )
- Bitwise Operators(बिट् वाइज ऑपरेटर्स)
- Assignment Operator(अस्सैंमेंट ऑपरेटर्स)
- Unary operator(यूनरी ऑपरेटर्स )
- Ternary or Conditional Operator
- Misc Operator
(ऑपरेटर्स in C++)
Dear Students :-ऊपर लिखे ऑपरेटर्स को बहुत अच्छे से read out करना है क्योकि ये ओपेरटस से ही हम लोग प्रोग्राम्स में Help लेंगे |
|
Comments
Post a Comment