How will you find size of a union without using size of operator?

union  ABC{
    int a;
    float b;
    char c;
};
void main(){
    union ABC *ptr=(union ABC *)0;
    ptr++;
    printf("Size of union is: %d",*ptr);
}
Post a Comment