The best replacement for struct is class.


The best alternatives to struct are rated as following:
★★★★★  class
★★★★★  union
★★  enum
★★  class c#
★  typedef struct
★  enum c#
★  class performance
★  object
★  interface
★  class c++
★  typedef
★  class ruby
★  struct
★  class c# performance
  class java
  c++ struct
  tuple
  class difference
  class .net
  union c++
  openstruct

Your alternative for struct is not listed? Suggest!
Speaking about struct, one probably shouldn't forget about malloc.

Other search terms related to struct and their ratings are:

★★★★★ malloc
★★★★★ typedef
★★★ array c++
sizeof
struct
You have in mind a companion for struct and it is not yet here? Propose!



Google Trends

Scale is based on the average worldwide traffic of struct in all years. Click on graph for more.
struct
class
union