#include "StdAfx.h"
#include <stdio.h>
#include <stdlib.h>
typedef union {
int intType;
char charType;
float floatType;
const char* stringType;
} AnyType;
int main() {
AnyType anyType[4];
anyType[0].intType = 1;
anyType[1].charType = '2';
anyType[2].floatType = 3.4f;
anyType[3].stringType = "567";
printf("%d\n", anyType[0].intType);
printf("%c\n", anyType[1].charType);
printf("%f\n", anyType[2].floatType);
printf("%s\n", anyType[3].stringType);
system("pause");
return 0;
}