about summary refs log tree commit diff stats
path: root/dev/c/datatypes.html
diff options
context:
space:
mode:
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>