✏️ Explanatory Question

What are the types of casting shown by the following examples:

  1. char c = (char) 120;
  2. int x = ‘t’;

👁 59 Views
📘 Detailed Answer
🟢 Easy
💡

Answer with Explanation

  1. Explicit Cast.
  2. Implicit Cast.