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 a double c?
Can you think of a logic behind the game minesweeper.
write an algorithm to display a square matrix.
how many errors in c explain deply
What is static identifier?
What is the auto keyword good for?
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
Why c is a mother language?
What is pointers in c with example?
Stimulate calculator using Switch-case-default statement for two numbers
What is a pointer in c plus plus?
how to write optimum code to divide a 50 digit number with a 25 digit number??
Explain what are the __date__ and __time__ preprocessor commands?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
Explain what is wrong in this statement?