Click here to Skip to main content
15,886,422 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm a beginner, so could you please explain to me how variables are initialized?
Posted
Updated 6-Jun-10 23:50pm
v2
Comments
Johnny J. 7-Jun-10 5:51am    
Edited language and grammar to improve readability

1 solution

They're initialized with the "=" sign. How they're initialized depends on what type they are. Intrinsic types can simply be assigned a value. Complex types must be instantiated with new before they can be used.

Beyond that, you should read a book because learning to program at this level is not the proper use of this part of the web site.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900