-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBCTlec05.c
59 lines (24 loc) · 1.05 KB
/
BCTlec05.c
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
55
56
57
58
59
//BCTlecture05
// character & ASCII Value.....
// 1 byte....(character)
//[ Always one '.,' [Ex..{'xy'}] ]
// character= %c
#include<stdio.h>
int main (){
/* char my_char;
my_char = 'S';
printf ("sohan=%c\n",my_char);*/
/*char first='S',second='O',thrd='H',frt='A',fth='N';
printf ("\t%c%c%c%c%c\n\n",first,second,thrd,frt,fth); //jto gula char toto gula %c......*/
//.....ASCII Value.....
//(American Standard Code for Information Interchange)..
// A = 65
// a = 97
/* // The way To Find ASCII CODE...
char x = 'A';
printf ("\t %d\n",x); // Must use %d (integer...)*/
//Another way....
int a = 65, b = 66,c = 67;
printf ("%c%c%c\n\n",a,b,c);
return 0;
}