If value is an identifier of int type and is holding value 200, is the following statement correct?

Q5. If value is an identifier of int type and is holding value 200, is the following statement correct?

                char code = value;

Ans. Yes, the above stated statement is correct, since the memory implementation of char data type is in terms of the number code (which is integer).

Leave a Reply

Your email address will not be published. Required fields are marked *

260 Views
%d bloggers like this: