EXPLICIT TYPE CONVERSION
\ɛksplˈɪsɪt tˈa͡ɪp kənvˈɜːʃən], \ɛksplˈɪsɪt tˈaɪp kənvˈɜːʃən], \ɛ_k_s_p_l_ˈɪ_s_ɪ_t t_ˈaɪ_p k_ə_n_v_ˈɜː_ʃ_ə_n]\
Sort: Oldest first
-
(Or "cast" in C and elsewhere). A programmingconstruct (syntax) to specify that an expression's valueshould be converted to a different type.For example, in C, to convert an integer (usually 32 bits)to a char (usually 8 bits) we might write:int i = 42;char *p = &buf;*p = (char) i;The expression " (char)" (called a "cast") converts i's valueto char type. Casts (including this one) are often notstrictly necessary, due to automatic coercions performed bythe compiler, but can be used to make the conversion obviousand to avoid warning messages.
By Denis Howe
Nearby Words
- explicator
- explicatory
- explicit
- explicit definition
- explicit parallelism
- explicit type conversion
- explicitly
- explicitness
- explode
- explode a bombshell
- exploded