Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualjtw

Posted 10 August 2012 - 08:01 AM

I would of thought you would have to make it like

Int a = null, int b;

else how does the compiler's know what data type you mean. Sure it's easy to see that the first one was for int so the second one must mean int too. I expected some kind of rule to say you had to declare a data type.

I can do

Int a = null, float b = null, c;

Is c an int or a float?

#1jtw

Posted 10 August 2012 - 08:00 AM

I would of thought you would have to make it like

Int a = null, int b;

else how does the compiler's know what data type you mean. Sure it's easy to see that the first one was for int so the second one must mean int too. I expected some kind of rule to say you had to declare a data type.

I can do

Int a = null, char b = null, c;

Is c an int or a char?

PARTNERS