New method to create a Variable || Method 2 || Unions || C programming
In this, we are going to see Another way of creating a variable using Unions with help of C Programming Language.

 

#include <stdio.h>
union abc
{
    int a;

} var;
int main()
{
    var.a = 66;
        //.operator to access members of a union.
        printf("\n a = %d", var.a);
    return 0;
}

//.........Coded by ARADHANA MISHRA

#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post