View Single Post
  #1 (permalink)  
Old July 25th, 2003, 12:53 PM
nigor nigor is offline
Registered User
 
Join Date: Jul 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default parameter initilization in functions

I've read that it is important to initialize a variable upon definition, that way the variable will not be assigned memroy space that might contain junk values. So, for example, in a function like 'int text(int x, int y)', are x and y automatically initialized to zero? Do I have to initialize them, or the compiler takes care of it?

Reply With Quote