1 votes 1 votes What is the output of following program? main ( ) { union a { int i; char ch[z]; } union a,u; u∙i=256 printf (%d%d%d,u∙i,u∙ch[0],u∙ch[1] ); } 256 1 0 255 1 0 256 0 1 255 0 1 Programming in C programming-in-c output + – Parshu gate asked Nov 10, 2017 Parshu gate 619 views answer comment Share Follow See 1 comment See all 1 1 comment reply Harish Kumar 2 commented Dec 4, 2017 reply Follow Share Out put is Option c. 256 0 1 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes ASCII value of z = 01111010 u.i = 256 u.ch[0] = 0 u.ch[1]= 1 Hence option C. Ashwin Kulkarni answered Dec 4, 2017 Ashwin Kulkarni comment Share Follow See all 0 reply Please log in or register to add a comment.