o/p :Code:#include <stdio.h> int main() { union s { int i; char ch[2]; }; union s obj; obj.i=255; printf("%d %d %d\n",obj.i,obj.ch[0],obj.ch[1]); }255 -1 0forum4hackers.blogspot.com
But what i expected was 255 255 0
But How that -1 ?
Explain please ?
Thanks
yogeesh serlathan