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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -