If you store them as a character array:
if (character_array[n] == '1')
If you store them as bits in an integer value:
if (integer_value & (1<<n))
Note: 'n' is an integer value from 0 to 4.
If you store them as a character array:
if (character_array[n] == '1')
If you store them as bits in an integer value:
if (integer_value & (1<<n))
Note: 'n' is an integer value from 0 to 4.