* variable type
@ 2005-07-11 6:26 raja
2005-07-11 11:57 ` Luiz Fernando Capitulino
0 siblings, 1 reply; 2+ messages in thread
From: raja @ 2005-07-11 6:26 UTC (permalink / raw)
To: linux-c-programming
hi,
If i have given a variable name that is declared previously.
Is there any way to knoe the type of the variable.
for ex I have declared a variable str as
char *str;
it is declared in some other file.
How can i know the type of str.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: variable type
2005-07-11 6:26 variable type raja
@ 2005-07-11 11:57 ` Luiz Fernando Capitulino
0 siblings, 0 replies; 2+ messages in thread
From: Luiz Fernando Capitulino @ 2005-07-11 11:57 UTC (permalink / raw)
To: raja; +Cc: linux-c-programming
raja wrote:
> hi,
> If i have given a variable name that is declared previously.
> Is there any way to knoe the type of the variable.
No there isn't. But you can know how bytes long the variable
is with the 'sizeof' operator.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-07-11 11:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-11 6:26 variable type raja
2005-07-11 11:57 ` Luiz Fernando Capitulino
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).