How it execute a 515 output? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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
1 Réponse
0
Sir where from the 256 came to this equation?
9th Jul 2021, 5:45 AM
Ankur Hazarika