int res=’A’; What is the value of res?
  1. A
  2. 66
  3. 65
  4. 97


Solution



(c)
65

Explanation:

Since res is an int variable and character changes to an int based on ASCII code, and the ASCII value of 'A' is 65


Contact Us

REACH US

SERVICES

  • CODING
  • ON-LINE PREPARATION
  • JAVA & PYTHON

ADDRESS

B-54, Krishna Bhawan, Parag Narain Road, Near Butler Palace Colony Lucknow
Contact:+ 919839520987
Email:info@alexsir.com