0 0 votes closed with the note: Please see already solved questions here. This is irrelevant for GATE main() { int a ; char *x; x = (char *)&a ; a= 512 ; x[0] = 2 ; x[1] = 2; printf("%d\n",a); } how the o/p is 514 plz explain someone :) Programming in C + – sumit goyal 1 450 views comment Share Follow Print 0 reply Please log in or register to add a comment.