1 votes 1 votes main() { int a ; char *x; x = ( char *)&a; a = 512 ; x[0] = 2 ; x[1] = 2 ; printf("%d",a); } Programming in C output programming pointers + ā sumit goyal 1 asked Jan 26, 2018 sumit goyal 1 answer comment Share See all 3 Comments See all 3 3 Comments reply Ashwin Kulkarni commented Jan 26, 2018 reply Share It will be $514$ initially $a = 00000010 00000000$ then $x[0] = 2 = 00000010$ and $x[1] = 2 = 00000010$ hence$ a = 00000010 00000010 = 514$ 0 votes 0 votes shriram s 1 commented Jan 26, 2018 reply Share https://gateoverflow.in/32730/what-will-be-output 2 votes 2 votes sumit goyal 1 commented Jan 26, 2018 reply Share @shriram s 1 thnks 0 votes 0 votes Please log in or register to add a comment.