Answer Posted / vadivelt
Since Union follows the memory sharing concept, it is not
possible to initialise all union varibles at a time.
ie.,
union name
{
int a;
char b;
}c = {10, 'a'};
is not possible.
But it is possible to initialise one value at a time.
ie.,
union name
{
int a;
char b;
}c = {10};
or
union name
{
int a;
char b;
}c = {'a'};
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is strcpy() function?
Explain bit masking in c?
What does the file stdio.h contain?
Explain what is dynamic data structure?
What is volatile c?
What is time null in c?
Is printf a keyword?
What is unary operator?
How would you obtain the current time and difference between two times?
What is a substring in c?
explain what is fifo?
provide an example of the Group by clause, when would you use this clause
When can a far pointer be used?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
Write a program to swap two numbers without using third variable in c?