-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathASCIIvalueofLetters.c.save
54 lines (41 loc) · 2.35 KB
/
ASCIIvalueofLetters.c.save
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*@Shyed Shahriar Housaini
Copyright: @uthor*/
#include <stdio.h>
/**#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <windows.h>
///#include <threads.h>
#include <conio.h>
#include <dos.h>
#include <direct.h>
#include <math.h>
#include <stdbool.h>**/
int main(void)
{
printf (" ASCII - American Standard Code for Information Interchange \n\n");
printf (" From ASCII 0 to 32 No character.\n\n ");
printf (" From ASCII 49 to 57 are numbers from 0 to 9.\n\n ");
printf (" From ASCII 65 to 90 are numbers from A to Z \n\n");
printf (" From ASCII 97 to 122 are numbers from a to z \n\n");
printf (" Control Characters (0–31 & 127): Control characters are not printable characters.\n They are used to send commands to the PC or the printer and are based on telex technology.\n With these characters, you can set line breaks or tabs.\n Today, they are mostly out of use \n\n");
printf (" Special Characters (32–47 / 58–64 / 91–96 / 123–126): Special characters include all printable characters \n that are neither letters nor numbers. These include punctuation or technical,\n mathematical characters. ASCII also includes the space \n(a non-visible but printable character), and, therefore, \n does not belong to the control characters category,\n as one might suspect. \n\n");
printf (" Numbers (30–39): These numbers include the ten Arabic numerals from 0-9. \n\n");
printf (" Letters (65–90 / 97–122): Letters are divided into two blocks, with the first group \n containing the uppercase letters and the second \n group containing the lowercase. \n\n");
printf (" Definition ASCII Character encoding is the American Standard \nCode for Information Interchange, and is the US precursor to ISO 646 \n(internationally defined character sets). ASCII is a 7-bit code, meaning that 128\n characters (27) are defined. The code consists of 33 non-printable and \n 95 printable characters and includes both letters,\n punctuation marks, numbers and control characters. \n\n");
printf (" From \n\n");
printf (" From \n\n");
printf (" From \n\n");
printf (" From \n\n");
printf (" From \n\n");
printf (" From \n\n");
printf (" From \n\n");
printf (" From \n\n");
printf (" From \n\n");
int ch;
for( ch = 0 ; ch <= 9999; ch++ )
{
printf("ASCII value = %d, Character = %c\n", ch , ch );
}
return 0;
}