In article <
[email protected]>,
Keith Thompson <
[email protected]> wrote:
Thiago Adams <[email protected]> writes:
How cast works?
Does it changes the memory?
For instance, from "unsigned int" to "signed char".
Is it just like discarding bytes or something else?
It depends on the source and target types.
A cast is an explicit conversion. It takes a value of some type and
yields a value of some (other) type -- or of the same type. The
semantics of a conversion are not affected by whether it's done
explicitly or implicitly.
The rules depend on the source and target types, and are specified in
the standard, section 6.3 "Conversions". You'll need to read the whole >thing.
What if he is a Trumper and can't read? What then?
--
Modern Conservative: Someone who can take time out from demanding more
flag burning laws, more abortion laws, more drug laws, more obscenity
laws, and more police authority to make warrantless arrests to remind
us that we need to "get the government off our backs".
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)