English

Int x = (int) 32.8; is an example of ______ typecasting. - Computer Applications

Advertisements
Advertisements

Question

int x = (int) 32.8; is an example of ______ typecasting.

Options

  • impiicit

  • automatic

  • explicit

  • coercion

MCQ
Fill in the Blanks

Solution

int x = (int) 32.8; is an example of explicit typecasting.

Explanation:

In an explicit type conversion, data of one type is explicitly converted to a different kind by the programmer's intervention, shown here by writing(int).

shaalaa.com
Type Conversion
  Is there an error in this question or solution?
2022-2023 (March) Official
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×