Search:

Type: Posts; User: jimblumberg

Search: Search took 0.03 seconds.

  1. Replies
    29
    Views
    32,716

    If this value is never used again then a one...

    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...
  2. Replies
    29
    Views
    32,716

    You can only initialize a variable once. As long...

    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...
  3. Replies
    29
    Views
    32,716

    For C89 I would actually use number 5. 5....

    For C89 I would actually use number 5.

    5. Declare and initialize all variables to default values at the top of the function.

    Jim
  4. Replies
    29
    Views
    32,716

    Since C89 does not have Variable Length Arrays...

    Since C89 does not have Variable Length Arrays you would need to use malloc/free to dynamically allocate the memory.

    Jim
Results 1 to 4 of 4