English

Int x = 98; char ch = (char)x; what is the value in ch? - Computer Applications

Advertisements
Advertisements

Question

int x = 98; char ch = (char)x; what is the value in ch?

Options

  • b

  • A

  • B

  • 97

MCQ

Solution

b

Explanation:

'A' has an ASCII value of 97; hence, ' B' has an ASCII value of 98.

shaalaa.com
  Is there an error in this question or solution?
2023-2024 (February) Official
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×