---
title: "what is anonymous union in C  ?"  
description: "what is anonymous union in C  ?"  
author: "Royce Roy"  
published: 2013-06-17  
updated: 2013-06-17  
canonical: https://www.mindstick.com/forum/1190/what-is-anonymous-union-in-c  
category: "visual c++"  
tags: ["visual c++"]  
reading_time: 1 minute  

---

# what is anonymous union in C  ?

what is [anonymous](https://www.mindstick.com/interview/1140/what-is-anonymous-class-in-java) [union](https://www.mindstick.com/articles/1510/union-example-in-sql-server) in [C++](https://www.mindstick.com/blog/745/array-in-c-plus-plus)?

## Replies

### Reply by Anonymous User

An anonymous union does not have a type name, and no variables can be declared for this short of union. Instead, an anonymous union tells the compiler that its member will share the same memory location.


---

Original Source: https://www.mindstick.com/forum/1190/what-is-anonymous-union-in-c

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
