0

How it execute a 515 output?

Union a have a non declaring variable ie int i.. But how it makes u.i 515 within the printf function??? https://code.sololearn.com/c25XYMW4wQou/?ref=app #include<stdio.h> int main() { union a { int i; char ch[2]; }; union a u; u.ch[0]=3; u.ch[1]=2; printf("%d, %d, %d", u.ch[0], u.ch[1], u.i); return 0; }

8th Jul 2021, 6:22 AM
Ankur Hazarika
2 Answers
0
Sir where from the 256 came to this equation?
9th Jul 2021, 5:45 AM
Ankur Hazarika