Q. What is the output of this program?

Code:
class mainclass {
         public static void main(String args[])
          {
             char a = 'A';
             a++;
 	    System.out.print((int)a);
         }
      }
  • (A) 66
  • (B) 67
  • (C) 65
  • (D) 64
πŸ’¬ Discuss
βœ… Correct Answer: (A) 66

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
319
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Kirti
Publisher
πŸ“ˆ
98%
Success Rate