English

Give the output of the following method definition and also write what mathematical operation it carries out: void test3(char c) { System.out.println( (int) c); } if 'm' is passed to c. - Computer Applications

Advertisements
Advertisements

Question

Give the output of the following method definition and also write what mathematical operation it carries out: 

void test3(char c)
{
    System.out.println( (int) c);
}

if 'm' is passed to c. 

Answer in Brief

Solution

109
(The mathematical process carried out is to display the ascii value of a character).

shaalaa.com
  Is there an error in this question or solution?
Chapter 5: User - Defined Methods - EXERCISES [Page 336]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 5 User - Defined Methods
EXERCISES | Q IV. 3. | Page 336
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×