Tag Archives: curiosity

Did you know…

Consider the following code snippet:

Which one of the following declarations of the variable i will compile without errors and print true when the program runs?

  1. int i = 017;
  2. int i = 15.0f;
  3. int i = 15L;
  4. int i = 15.0;

I will comment out the solution in the next few hours. Stay tunned.