[try Beta version]
Not logged in

 
C / C++ struct

Dec 11, 2014 at 5:00pm
Hi,
is it possible to create in header file a typdedef of a struct without defining one nor allocating a memory for one?
Thank you.
Dec 11, 2014 at 5:36pm
I don't really understand what you actually meant. typedef is used is c++ just to give another name of a type(class) that already exist. it does nothing more than giving another name. you can use typedef for struct as well.

Dec 11, 2014 at 6:56pm
and classes/structs without do not use memory unless instantiated.
Topic archived. No new replies allowed.