Home Science Subscribe to RSS

What Is Union In C Language?

Answer Question

2 Answers - Sort by: Date | Rating

    It can be treated as a user-defined data type just like structure. The difference between the structure and union is that where each member present in structure takes its own memory..while in case of union, only the largest sized member memory is reserved by the union.
    0 0

    Neerajasr 

    answered 3 years ago

      Union is user defined data types it is similar to structure but differs in
      allocated size for it =size of largest member size (save memory) which means that u access one member at a time
      0 0
      Guest

      Guest 

      answered 8 months ago

        More

           
           

          Ask a Question via Twitter

          Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

          Blurtit Store

          Get T-shirts, hoodies, caps and more at the Blurtit store

          Blurtit International