Any way to compare arrays without using loops.


hello,

i making arduino project translates morse code letters. there way can compare dots , dashes stored in array letters. heard rumors of people being able use hashtables or dictionaries. want avoid having use 26 loops compare array each individual letter code.

you use memcmp() compare 2 arrays, if same length. if aren't, aren't same.


Arduino Forum > Using Arduino > Programming Questions > Any way to compare arrays without using loops.


arduino

Comments