What would appear in the console window after the code below executes?
#include <stdio.h>
int main()
{
char myLetter = 'A';
printf("The value of A is %d", myLetter);
}
What would appear in the console window after the code below executes?
The value of A is 65
Explanation
ASCII value A is 65
ASCII value B is 66
ASCII value C is 67 So on.
Every character has it's own ASCII value
American Standard Code for Information Interchange.
Computer can not understan our language(English etc..).
Computer understand 0 and 1. Numbers are convert into binary numbers(0 and 1).
When you press 'A' , it ASCII value is 65
65 is convert into binary number 1000001,
1000001 is understand computer.
Get Answers For Free
Most questions answered within 1 hours.