void,declarations
This commit is contained in:
parent
d70d2a03d7
commit
ca1ab5a3a4
1 changed files with 9 additions and 6 deletions
|
@ -21,7 +21,7 @@ Main
|
|||
|
||||
.. code:: c
|
||||
|
||||
main() {
|
||||
void main() {
|
||||
system("pause");
|
||||
}
|
||||
|
||||
|
@ -30,11 +30,14 @@ Declarations
|
|||
|
||||
.. code:: c
|
||||
|
||||
char operator;
|
||||
int entry1 = 0;
|
||||
int entry2 = 0;
|
||||
long entry = 0;
|
||||
float f = (float)1;
|
||||
// unsigned, sizeof()
|
||||
char c = '1';
|
||||
short s = 2;
|
||||
int i = 4;
|
||||
long l = 8;
|
||||
float f = (float)4;
|
||||
double d = (double)8;
|
||||
long double ld = (long double)16;
|
||||
|
||||
Output
|
||||
------
|
||||
|
|
Loading…
Reference in a new issue