S
srikar2097
I came across this this piece of code while trying to understand
someone elses code.
#include <stdio.h>
int main()
{
typedef long LG, *LGP;
extern LGP lptr;
return 0;
}
Here LG is a typedef for "long" and LGP is a pointer to a "long". My
doubt here is what is the purpose of having a pointer to a "long" i.e.
a data type. it is not a variable right? I know technically this is
correct. But my doubt is more functional (use of this) than syntactic.
Thanks...
someone elses code.
#include <stdio.h>
int main()
{
typedef long LG, *LGP;
extern LGP lptr;
return 0;
}
Here LG is a typedef for "long" and LGP is a pointer to a "long". My
doubt here is what is the purpose of having a pointer to a "long" i.e.
a data type. it is not a variable right? I know technically this is
correct. But my doubt is more functional (use of this) than syntactic.
Thanks...