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]