Say I have a char array called dave, with elements dave[0] = 'h' and dave[1] = 'i'
What is the best way of finding out if they char array is equal to 'hi'?
Is the best way of doing comparing each element at a time such as if(dave[0] == 'h' && dave[1] == 'i') or is there a C function which does this for me?
Thanks