Sorry if this question is poorly worded (please edit it if it will make it easier for readers to understand me.)
I’m new to oop and was learning some C code. What does this last line of code mean? Is there a way to paradigmatically(I just made up this word) write it differently?
typedef struct _Song {
//some members
} Song;
Song * pSong=0;
Shouldn’t it be:
_Song * pSong=0;
Instead of:
Song * pSong=0;
…since Song is an object and _Song is a structure.
Songis nothing more than an alias forstruct _Song(that’s what thetypedefat the beginning means). There is absolutely no difference between the two, wrt their type.In C++, the syntactic difference is even more marginal, since
_Songis also an alias forstruct _Song.