pointer
-
hi everyone! good day! i just wanted to ask whats the difference between declaring a variable like this TEST* pTest; with LPTEST pTest; // see code below typedef struct { ... } TEST, *LPTEST; thanks! newbie :)
there's none... because
LPTEST
is just a synonym for being a pointer to aTEST
. but for readability reasons, i prefer using theTEST*
notation
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
-
there's none... because
LPTEST
is just a synonym for being a pointer to aTEST
. but for readability reasons, i prefer using theTEST*
notation
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
toxcct wrote:
lisibility
:confused: :~ Frenglish for "readability", huh tox'? From the french word "lire"?
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown -
toxcct wrote:
lisibility
:confused: :~ Frenglish for "readability", huh tox'? From the french word "lire"?
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknownoh sh*t ! rotfl, you're damn right... i'm changing it immediately ! :-O
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
-
oh sh*t ! rotfl, you're damn right... i'm changing it immediately ! :-O
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
:laugh: It was good though, it made me laugh as well.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown -
hi everyone! good day! i just wanted to ask whats the difference between declaring a variable like this TEST* pTest; with LPTEST pTest; // see code below typedef struct { ... } TEST, *LPTEST; thanks! newbie :)
They are the same, basically it's only the MS way to fight the pointer notation fear... :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
-
:laugh: It was good though, it made me laugh as well.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown