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
|
.. code:: c
|
||||||
|
|
||||||
main() {
|
void main() {
|
||||||
system("pause");
|
system("pause");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,11 +30,14 @@ Declarations
|
||||||
|
|
||||||
.. code:: c
|
.. code:: c
|
||||||
|
|
||||||
char operator;
|
// unsigned, sizeof()
|
||||||
int entry1 = 0;
|
char c = '1';
|
||||||
int entry2 = 0;
|
short s = 2;
|
||||||
long entry = 0;
|
int i = 4;
|
||||||
float f = (float)1;
|
long l = 8;
|
||||||
|
float f = (float)4;
|
||||||
|
double d = (double)8;
|
||||||
|
long double ld = (long double)16;
|
||||||
|
|
||||||
Output
|
Output
|
||||||
------
|
------
|
||||||
|
|
Loading…
Reference in a new issue