Skip to contentSkip to conversation

variable type

DISCUSSION raja 2 participants 2 messages Jul 11, 2005

lore
Share & tools
lore

raja

author
#0 lore raw

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.

#1 lore raw
Quoted 3 lines · raja

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.