comparing array

Hey everyone
im new into programming. Im trying to comparing or check the values inside an array is correct.
i got an array

byte array1[2] .

i want to put 3 numbers inside it. lets say {1,2,3}. is there a way to check at the end if the values inside it is{1,2,3}

like can i do

if ( array1[] == {1,2,3} )
{
// do something
}

Thanks

Look at memcmp().

phaz:
Hey everyone
im new into programming. Im trying to comparing or check the values inside an array is correct.
i got an array

byte array1[2] .

i want to put 3 numbers inside it. lets say {1,2,3}.

You can't put three numbers in an array with only two elements.

For 3 members you would need 'byte array1[3];'