Is there a way to go from array[0] to array[n] in C without typing them all out.like:
if(array[0] to array[n] == '_')
thanks for the suggestions guys but i only wanted the code to execute if ALL of the elements in the array were ==95, not if just one of them was.i ended up just typing them all out and using && between them.
Thanks anyway 😀
It’s called a
forloop, you can make a function to encapsulate the behaviour you want of being able to check the array inside inifcondition: