Answer Posted / banavathvishnu
union
{
int a;
char ch;
float f;
}tt = {10};
main()
{
printf("%c",tt.ch);
}
In union it is enough to initialise one variable, same
value will reflect the value in remaning members also.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
How do you declare a variable that will hold string values?
how to build a exercise findig min number of e heap with list imlemented?
What does the error message "DGROUP exceeds 64K" mean?
What are the parts of c program?
What is the right way to use errno?
What are global variables and how do you declare them?
Can we assign string to char pointer?
Can you please explain the difference between syntax vs logical error?
Discuss the function of conditional operator, size of operator and comma operator with examples.
Explain how do you generate random numbers in c?
What is data types?
How can you avoid including a header more than once?
shorting algorithmS
How many loops are there in c?
In C, What is the #line used for?