Q. What is the output of the following code?

Code:
#include <stdio.h>
int main() {
    char ch = 'A';
    printf("%d", ch);
    return 0;
}
  • (A) A
  • (B) 65
  • (C) Error
  • (D) Undefined
πŸ’¬ Discuss
βœ… Correct Answer: (B) 65
Explanation: Character 'A' is represented as ASCII 65.
Explanation by: Mr. Dubey
Character 'A' is represented as ASCII 65.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
75
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
85%
Success Rate