619 views
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] ); 
}

  1.   256 1 0
  2.   255 1 0
  3.   256 0 1
  4.  255 0 1

1 Answer

Related questions

1 votes
1 votes
1 answer
2
Na462 asked Jan 8, 2019
1,437 views
#include <stdio.h>main (){unsigned x = -10;int X = 20;if (X x) printf ("Hello");else{ printf ("%d",x); printf ("Jello"); }}
0 votes
0 votes
0 answers
3
aimhigh asked Jan 8, 2019
1,260 views
#include<stdio.h>void main(){int p=-8;int i= (p++,++p);printf("%d\n",i);}
0 votes
0 votes
0 answers
4