Structs are value-type variables and are thus saved on the stack, additional overhead but faster retrieval. Another difference is that structs cannot inherit.
we can give function definition and function declaration in class but this is not possible in structure
structure is used to store the data which is having sub parts . where as class is a collection of member variables and member functions it is not possible to call the function in structure .where asit is possible in class.
Willing to add some more points 2)By default the members variables in Structure z public whereas in Class it private 3)Class contains Member Functions, its not so in struct
structures can be used in both c and c++ while class is an OOP Concept, so it can be used in C++ only. A class has a constructor and a destructor while a structure doesnt have any. A class can be inherited while a structure cannot be inherited. By default all the member variables in a structure are public while in a class they are private. The member variables can be public,protected, and private in a class but in a structure its always public.