Results 1 to 6 of 6

Thread: Length of array

Threaded View

  1. #1

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    I was using it in a function which gave me 1, and the way I posted gave me 1, but if I do this:
    Code:
    cout << sizeof(arr) << "/" << sizeof(int) << "=" << sizeof(arr) / sizeof(int) << endl;
    Is there any way to use it in a function?
    Last edited by Wynd; Feb 14th, 2002 at 07:05 PM.
    Alcohol & calculus don't mix.
    Never drink & derive.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width