🤔 No result found

👉 Don't loose hope, Try out below methods

Ask on Telegram
  • 💡 Search Tips
  • ➡️ Type question from start
  • ➡️ Use unique words from question
  • ❌ Don't search full question
Telegram Group 🔥🔥🔥 Get answers in minutes
Questions answered : 48 /50
Guy
Guy
Guy
Guy
Guy
+ 4981 more
Verified Answer verified

Which of the following statements correct about the below program
#include<stdio.h>

int main()
{
union a
{
int i;
char ch[2];
};
union a u1 = {512};
union a u2 = {0, 2};
return 0;
}



1
u2 CANNOT be initialized as shown


2
u1 can be initialized as shown


3
To initialize char ch[] of u2 '.' operator should be used


4
The code causes an error 'Declaration syntax error'

🗓 Feb 19, 2023

Answer is "1, 2, 3"

Comments and Discussions

You don't need to login to post your comment

Comments:
30
Views:
60k
Likes:
120k
votes
Sabrina 🌐 India
Answer is fine but where is solution?
Was this answer helpful?
votes
Megan 🌐 India
give solution please
Was this answer helpful?

Was your question answered?

Thanks for the feedback! ✅

Want to get famous? 📸

Answer question and get 🤩 high-lighted on our homepage.

Just Automated Logo

© 2017-2022 Foxoyo™
All rights reserved.

Facebook Connect with us