There are four modifiers in C++: long, short, signed and unsigned. They are used to modify primitive types (int, char, float and double) to change their behaviour. If no type is specified, int is assumed. Thus a long long turns a 32-bit integer into a 64-bit integer while unsigned ensures an integer is always in the positive range.
I've never heard the term posneg before, but I'll assume it's a contraction of positive and negative, which is a signedvalue in C++, as opposed to an unsigned value which is always positive. Signed and unsigned are modifiers that can be applied to any integral data type (integer and char types).
For example 'int' is a data-type, 'short', 'long', 'signed' and 'unsigned' are modifiers, 'extern', 'auto', 'static', 'register' are storage-classes. The declarations go like this: storage-class modifiers data-type identifier example: static unsigned short int x;
The same as in C, struct.
char x = "C"; if(char == 'C') { } else { }
same the types used in C. that is int...char...float...
short, long, long long, signed, unsigned
I've never heard the term posneg before, but I'll assume it's a contraction of positive and negative, which is a signedvalue in C++, as opposed to an unsigned value which is always positive. Signed and unsigned are modifiers that can be applied to any integral data type (integer and char types).
For example 'int' is a data-type, 'short', 'long', 'signed' and 'unsigned' are modifiers, 'extern', 'auto', 'static', 'register' are storage-classes. The declarations go like this: storage-class modifiers data-type identifier example: static unsigned short int x;
The same as in C, struct.
char x = "C"; if(char == 'C') { } else { }
Use "typedef" : both in C and C++.
Object-oriented programming and stricter type-safety.
type operator- ();
same the types used in C. that is int...char...float...
no
physical status modifiers
doesn't return the value.