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 convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
Write a program to reverse a given number in c?
What is the use of sizeof?
What is #line?
What is the purpose of & in scanf?
What is the size of enum in bytes?
how to construct a simulator keeping the logical boolean gates in c
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
What is the explanation for cyclic nature of data types in c?
What are void pointers in c?
Describe newline escape sequence with a sample program?
Differentiate between full, complete & perfect binary trees.
What is the use of typedef in c?
What are the 32 keywords in c?
Explain what is wrong in this statement?