about summary refs log tree commit diff stats
path: root/dev/c/datatypes.html
diff options
context:
space:
mode:
authorSilvino <silvino@bk.ru>2019-06-26 16:58:13 +0100
committerSilvino <silvino@bk.ru>2019-06-26 16:59:06 +0100
commit2830b5fb96cce787ca8c7562a968effc3e57bdb1 (patch)
treed8f3c09d0b52806ecc97e447655eb99f17a126e8 /dev/c/datatypes.html
parent0e5a601a31840e1531f3f90ca447bf3b1e766d73 (diff)
downloaddoc-2830b5fb96cce787ca8c7562a968effc3e57bdb1.tar.gz
dev index re-organization
Diffstat (limited to 'dev/c/datatypes.html')
-rw-r--r--dev/c/datatypes.html17
1 files changed, 11 insertions, 6 deletions
diff --git a/dev/c/datatypes.html b/dev/c/datatypes.html
index cbe19a2..77b5dbb 100644
--- a/dev/c/datatypes.html
+++ b/dev/c/datatypes.html
@@ -13,22 +13,27 @@
 
         <dl>
             <dt>char</dt>
-            <dd>Integer, one byte.</dd>
+            <dd>Integer is 1 byte.</dd>
+
             <dt>int</dt>
-            <dd>Integer.</dd>
+            <dd>Integer numbers 4 bytes (short is 2 bytes and long is 4 bytes)</dd>
+
             <dt>float</dt>
-            <dd>Single precision floating point.</dd>
+            <dd>Single precision floating point is 4 bytes.</dd>
+
             <dt>double</dt>
-            <dd>Double precision floating point.</dd>
+            <dd>Double precision floating point is 8 bytes.</dd>
+
             <dt>void</dt>
             <dd>Absence of type.</dd>
         </dl>
 
-
         <h2 id="datatypes">Data types</h2>
 
         <h2 id="int">Integer</h2>
+
         <p>Allowed <a href="elements.html#types">types</a> are char and int;</p>
+
         <dl>
             <dt>signed char</dt>
             <dd>8 bit, from -128 to 127.</dd>
@@ -93,7 +98,7 @@
 
         <pre>
         struct point {
-            int x, y;
+            int x, y, z;
         } first_point;
         struct point second_point;
         </pre>