Primitive Data Types - StarShipTutor/StarshipTutorAPCS GitHub Wiki

Variable Declaration and Initialization

   boolean theAnswer = true; // Declare and initialize at once
   char c            = 'H';  // Declare and initialize at once
   int i, j, k;              // Declare more than one of the same type
   float x = 1.0f, y;        // You can mix initializations 

   i = j = k = 10;           // You can do multiple identical initializations

   // I strongly recommend separating declarations and initializations
   // into a decelerations only block with initialization happening 
   // just before first use

* **Integer Bases** : Decimal - 255, Hex - 0xFF, Octal - 0377, Binary 0b0010_1111

Special Purpose Data Types

Integer Data Types

Floating Point Data Types