English

Write the Prototype of a Function Check Which Takes an Integer as an Argument and Returns a Character. - Computer Applications

Advertisements
Advertisements

Question

Write the prototype of a function check which takes an integer as an argument and returns a character.

Answer in Brief
One Line Answer

Solution 1

char check(int x)

shaalaa.com

Solution 2

charcheck(int x)
{ char c = (char) x;
return c;
     }
shaalaa.com
  Is there an error in this question or solution?
Chapter 2: Library Classes - EXERCISES [Page 179]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 2 Library Classes
EXERCISES | Q VII. 5. (c) | Page 179
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×