1,048 views
1 1 vote
What is the output of the program?

                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;
                }

 

3 Answers

Position:
Show:

Related questions

0 0 votes
0 0 answers
389
389 views
Mayankprakash asked Jul 15, 2018
389 views
My doubt is very basic, I want to understand what is the use of signed and unsigned used with integer.?2.what does size of signed int (-128 to 127) signify?3how to big en...
2 2 votes
2 2 answers
5.9k
5.9k views
Khushal Kumar asked Jul 4, 2017
5,885 views
Predict the output of following C programs1.#includeint main(){ char a = '\012'; printf("%d", a); return 0;}2.#includeint main(){ char a = '012'; printf...