// test.cpp
#include <stdio.h>
#include <stdlib.h>
static union {
int myInteger;
float myFloat;
};
int main(int argc, char* argv[])
{
myInteger = 5;
printf("%f\n", myFloat);
return 0;
}
Neither myInteger or myFloat show up as auto-suggests when I start typing them, but both are valid and the compiler recognizes them.
License: ... (1-user license) Support ends 2017.02.05
VA_X.dll file version 10.9.2102.0 built 2016.06.02
DevEnv.exe version 10.0.40219.1 Professional
msenv.dll version 10.0.40219.1
Comctl32.dll version 6.10.7601.18837
Windows 7 6.1 Build 7601 Service Pack 1
4 processors (x86-64, WOW64)
Language info: 1252, 0x409
Best regards,
Rick C. Hodgin