Ok, that makes sense. I just tested putting "sizeof(*a)" in the function to see if that helped but it didn't. :p
I guess I'll just accept the rule of thumb to pass the size as a parameter.
...
Type: Posts; User: Moe45673
Ok, that makes sense. I just tested putting "sizeof(*a)" in the function to see if that helped but it didn't. :p
I guess I'll just accept the rule of thumb to pass the size as a parameter.
...
I wrote a simple program that takes in 5 numbers into an array and then spits them back at you. Except that if the number inputted by the user is less than 10, it is doubled.
Simple enough. What I...