Hey,
I was hoping someone here could help me. Is there any way for you to find the size of an array in C like you can in Java? Dunno if I explained it clearly, so here's what I'm talking about:
Java:
Is there any way for me to implement that in C without knowing the length of the array beforehand?
I was hoping someone here could help me. Is there any way for you to find the size of an array in C like you can in Java? Dunno if I explained it clearly, so here's what I'm talking about:
Java:
Code:
for(int i = 0; i < myArray.length; i++)
(stuff)
Is there any way for me to implement that in C without knowing the length of the array beforehand?