Unions Quiz

Tips/C++ Eng 2015.10.27 16:27

UNIONS

(1/1 point)

Consider the following code snippet:

1. union numericUnion

2. {

3. int intValue;

4. long longValue;

5. double doubleValue;

6. };

7. numericUnion myUnion;

8. myUnion.intValue = 3;

9. cout << myUnion.intValue << endl;

10. myUnion.doubleValue = 4.5;

11. cout << myUnion.doubleValue << endl;

12. cout << myUnion.intValue; cout << endl;

What value will be output to the console window on line 12?

더보기


This contents come from edx : introduction to C++

저작자 표시
신고

'Tips > C++ Eng' 카테고리의 다른 글

switch Statments  (0) 2015.11.04
Introducing Operators  (0) 2015.11.01
Unions Quiz  (0) 2015.10.27
Enumerations  (0) 2015.10.27
Unions  (0) 2015.10.27
Structure [구조체]  (0) 2015.10.21

WRITTEN BY
Profile
비타오백
Enjoy your stage!

받은 트랙백이 없고 , 댓글이 없습니다.
secret