iphone - Character assignment issue with Objective C -
i try assign value char this
char cipher1[16] = {55,149,31,253,212,158,217,64,226,62,149,241,255,147,115,155};
but after assigning assign value chiper1 not exact value
55 -107 31 -3 -44 -98 -39 64 -30 62 -107 -15 -1 -109 115 -101
is correct assignment char in objective c
this difference between signed , unsigned byte ... print in form of unsigned char , should same result.
note: char --- signed value greater 128 take 8 bits hold -- values greater 128 shown in negative(it refers sign bit.)
Comments
Post a Comment