Skip to contentSkip to conversation

Type casting

DISCUSSION r_zaca 1 participant 1 message Dec 10, 2004

lore
Share & tools
lore

r_zaca

author
#0 lore raw
Quoted 5 lines
Quoted 3 lines

can any body explain what is the type of x in :

    x = (int) (float) x; 

No way to know x's type unless you show us the x declaration (maybe: > int

x;

Quoted 3 lines

?).
You're maybe dealing w/ the type of the value that will be assigned > to x (int)?

So what is the "(float)" for?