In this class, I learned about how to represent the letter in the C language.
ASCII code is a representation method for expressing the letter with a form of number.
For example, capital "A" is exchanged as 65, and "a" is exchanged as 97.
Therefore, if you write a code as "printf("%c", a)", computer input a number 97, not a letter 'a'.
To find a specific letter, look for the letters in the link below.
https://www.ascii-code.com/
Here's a example code for understanding how the ASCII code is running in the C programming.
#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) {
printf("%d", a);
return 0;
}
Results showed that letter "a" has a 97 that denoted as the ASCII code.
'Study Meeting > 빡공단 30기' 카테고리의 다른 글
[Day 8] Operator 1: Assignment, Relational, Arithmetic, Incremental Operators in C Language (0) | 2023.01.08 |
---|---|
[Day 7] Quadratic expression for C Programming (0) | 2023.01.07 |
[Day 5] Standard input/output functions: scanf() and printf() (0) | 2023.01.05 |
[Day 4] Character variable : To represent a character type (0) | 2023.01.04 |
[Day 3] Numeric variables : To represent a number type (0) | 2023.01.03 |