Union in Object-Oriented Programming and C++ Explained
#include 
using namespace std;
union test {
    char c;
    int i;
    double d;
};
int main() {
    test m = {'a'};
    cout << "Size of union: " << sizeof>                 
                                        
                                    文件大小:17.18MB
                                
                                
                                
                            
评论区