KnowledgeBoat Logo

Output Questions for Class 10 ICSE Computer Applications

Give output of the following function definition and also write the mathematical operation they carry out:


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

if 'm' is passed to c.

Java

User Defined Methods

ICSE

27 Likes

Answer

109

Working

This function prints the ASCII code of its argument. When 'm' is passed to this function, its ASCII code which is 109 gets printed as the output.

Answered By

14 Likes