sizeof(array)/sizeof(array_type)

Thanks,
Tyler Littlefield
Web: tysdomain.com
email: [email protected]
My programs don't have bugs, they're called randomly added features.

  ----- Original Message ----- 
  From: Michael Sullivan 
  To: [email protected] 
  Sent: Thursday, April 02, 2009 8:49 AM
  Subject: [c-prog] How many elements in the array?


  The thread on returning arrays from a function raises a question to my
  mind. Is there a way to determine how many elements are in the array
  without explicitly passing the number of elements to the function? I
  believe that in Java this is possible, but is it in C++? This is not a
  homework question; just idle curiousity...



  

[Non-text portions of this message have been removed]

Reply via email to