English

Define the following with an example: Coercion - Computer Applications

Advertisements
Advertisements

Question

Define the following with an example:

Coercion

Definition

Solution

Implicit Type Conversion or Coercion occurs in a mixed mode expression when the result's data type is converted to the highest available data type without the user's interaction.

Example:

int a;
long b, c;
c = a + b;

shaalaa.com
  Is there an error in this question or solution?
Chapter 1.03: Values and Data Types - EXERCISES [Page 33]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.03 Values and Data Types
EXERCISES | Q III. 3. (d) | Page 33
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×