cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
C / C++ struct
C / C++ struct
Dec 11, 2014 at 5:00pm UTC
jared181
(42)
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 UTC
unstoppy
(49)
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 UTC
MiiNiPaa
(8886)
and classes/structs without do not use memory unless instantiated.
Topic archived. No new replies allowed.