If this value is never used again then a one letter variable is usually considered acceptable. Then later in your program you could reuse this variable in another loop.
If the value is used later...
Type: Posts; User: jimblumberg
If this value is never used again then a one letter variable is usually considered acceptable. Then later in your program you could reuse this variable in another loop.
If the value is used later...
You can only initialize a variable once. As long as the value is not a const you can assign a different value many times.
If you always initialize your variables when you declare them to sensible...
For C89 I would actually use number 5.
5. Declare and initialize all variables to default values at the top of the function.
Jim
Since C89 does not have Variable Length Arrays you would need to use malloc/free to dynamically allocate the memory.
Jim