one is a variable I assigned. I'm not sure what to make of this.Code:test1.c:22: error: 'one' is used uninitialized in this function
This is a discussion on what does this error mean? within the C Programming forums, part of the General Programming Boards category; Code: test1.c:22: error: 'one' is used uninitialized in this function one is a variable I assigned. I'm not sure what ...
one is a variable I assigned. I'm not sure what to make of this.Code:test1.c:22: error: 'one' is used uninitialized in this function
It means you've declared a variable (one), not initialised it to have a value. Subsequent code in the function reads that value (or compares it with something).
Right 98% of the time, and don't care about the other 3%.
Oh thanks! I didn't know I had to give it a value first.