English

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

Advertisements
Advertisements

Question

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

Options

  • impiicit

  • automatic

  • explicit

  • coercion

MCQ
Fill in the Blanks
Advertisements

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?
Chapter 5: Library Classes - Exercises [Page 134]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 5 Library Classes
Exercises | Q 1. (xiii) | Page 134
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×