simple question

simple question is this:

int me = 5;
john = (char)(me + '0') + john

same things as just doing john = char (me+'0') + john
?

(char) is the same thing as just typing char ?
What type is john?
demons john;

Sorry, I just had to.
(char)/*something*/ is a C-style cast and char( /*something*/ ) is an alternative form, using an initializer-like syntax.
Last edited on
i seee, so its the same, ok thanks
demons john;

Sorry, I just had to.


Why must I always be left out of the in-jokes. :(
Last edited on
Topic archived. No new replies allowed.