From ca1ab5a3a482036d7ca385b296aba5f6768cb14c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 11 Dec 2018 22:24:36 +0100 Subject: [PATCH] void,declarations --- in/public/code/c/index.rst | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/in/public/code/c/index.rst b/in/public/code/c/index.rst index b4d8dfc..f5cae5c 100644 --- a/in/public/code/c/index.rst +++ b/in/public/code/c/index.rst @@ -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 ------