Union vs Struct Memory Layout

C++ Hard 2 views
Back to Questions

Problem Description

Compare memory usage of union and struct with same members.This teaches memory optimization techniques.
Logic: Use sizeof to compare memory allocation

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev