Data Types | Occupied in RAM | char int float double |
1byte 2bytes 4bytes 8bytes |
---|
Data Types | Occupied in RAM | unsigned char short int unsigned short int unsigned int long int unsigned long int long double |
1byte 1byte 1byte 2bytes 4bytes 4bytes 10bytes |
---|
Data Type | Format | Meaning |
---|---|---|
|
%d %u %o %x |
Respects a decimal integer value. Respects an unsigned integer value. Respect an unsigned octal value. Respect an unsigned hexadecimal value. |
|
%f %e |
Represents a floating point value. A floating point value in decimal or exponential form. |
| %c %s | Represents a single character value. Represents a strings of value of characters. |
Note : %hd, %ld, %lf are used for short int, long int and long double respectively.
Character Constant | Meaning |
---|---|
\n | Move to new line |
\r | Carriage return (Enter) |
\t | Horizontal tab |
\v | Vertical tab |
\\ | Print back slash |
\? | Print qustion mark |
\' | print singel quote |
\" | print double quote |
\0 | Null character |
It's a special area where you can find special questions and answers for CSE students or IT professionals. Also, In this section, we try to explain a topic in a very deep way.