How to assign values to byte array?
If i have a byte array like byte array[ ],then how do i assign values to this?I am a bit confused.Is it somethig like this byte array[ ]={ascii_value1,ascii_value2,....,ascii_value5};orbyte array[ ]={1,2,3,4};Thanks in advance
now if i use byte[] array={1,2,.}and i print array[2] i get the ascii value of ' . ' which is 46then in that case if i print array[1] shouldnt i get the ascii value of 2,bur it prints the character 2?
> > byte[] array={1,2,.}> > What? That shouldn't compile.> > KajSorry i forgot to quote the .Its byte array[ ]={1,2,'.'};
> Sorry i forgot to quote the .> > Its byte array[ ]={1,2,'.'};Now you see the difference, don't you? The dot is within ' ', number 1 and 2 are not.