Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


#Actualdemongunsman

Posted 02 February 2013 - 09:10 PM

When declaring a variable why should I use this:

 

int a = new int();

 

rather than:

 

int a;

 

 

I apologize if it is syntactically incorrect, but if you get the drift of what I am trying to ask, please let me know. Is it because of the way the variable or the value in the variable is stored in the memory? Maybe it makes it more efficient?


#2demongunsman

Posted 02 February 2013 - 09:08 PM

When declaring a variable why should I use this:

 

int a = new int();

 

rather than:

 

int a;

 

 

I apologize if it is syntactically incorrect, but if you get the drift of what I am trying to ask, please let me know.


#1demongunsman

Posted 02 February 2013 - 09:05 PM

When declaring a variable why should I use this:

 

int a = new int();

 

rather than:

 

int a;

 

 

I apologize if it is syntactically incorrect, but if you get the drift of what I am trying to ask, please let me know.


PARTNERS