What is the difference between a structure and a class - Answers.com In short, the convention is to use struct when the purpose is to group data, ... In C++ structures and classes are passed by value, unless explicitly de-referenced.