1 #include <iostream>
 2
 3 using namespace std;
 4
 5
 6 void show_chars()
 7 {
 8         //declare and define char types in a function
 9         char letter;
10         unsigned char letterU;
11         //assigning chars means using a single quote mark
12         letter = 'R';
13         letterU = 'u';
14         //declare,define and assign
15         char letterNull = 0;
16         char letterZero = '0';
17         char letterINT = 65;
18         char letterAlert = '\a';
19         char letterBackspace = '\b';
20         char letterFormFeed = '\f';
21         char letterNewLine = '\n';
22         char letterCarriageReturn = '\r';
23         char letterVertTab = '\v';
24         char letterHorzTab = '\t';
25         char letterBackslash = '\\';
26         char letterQuestionMark = '\?';
27         char letterSingleQuote = '\'';
28         char letterDoubleQuote = '\"';
29         char letterOct = '\102';
30         char letterHex = '\x43';
31         char * letterptr = "\x48";
32         cout << "signed char ==> " << letter << endl;
33         cout << "unsigned char==> " << letterU << endl;
34         cout << "NULL char ==> " << letterNull << endl;
35         cout << "ZERO char ==> " << letterZero << endl;
36         cout << "INT char ==> " << letterINT << endl;
37         cout << "Alert char ==> " << letterAlert << endl;
38         cout << "Backspace char ==> ::" << letterBackspace << "end" << endl;
39         cout << "FormFeed char ==> " << letterFormFeed << "end" << endl;
40         cout << "New Line char ==> " << letterNewLine << "end" << endl;
41         cout << "Carriage Return char ==> " << letterCarriageReturn << "end" << endl;
42         cout << "Verticle Tab char ==> " << letterVertTab << "end" << endl;
43         cout << "Horizonal Tab char ==> " << letterHorzTab << letterHorzTab << "end" << endl;
44         cout << "Backslash char ==> " << letterBackslash << endl;
45         cout << "Question Mark char ==> " << letterQuestionMark << endl;
46         cout << "Single Quotes char ==> " << letterSingleQuote << endl;
47         cout << "Double Quote char ==> " << letterDoubleQuote << endl;
48         cout << "Octal char ==> " << letterOct << endl;
49         cout << "Hexidecimal char ==> " << letterHex << endl;
50         cout << "pointer to  char ==> " << *letterptr << endl;
51
52         *letterptr = 'd';
53         cout << "pointer to  char ==> " << *letterptr << endl;
54
55
56
57 }
58
59 void show_ints()
60 {
61 }
62
63 void show_floats()
64 {
65 }
66
67 void show_arrays()
68 {
69 }
70
71 void show_cstrings()
72 {
73 }
74
75 void show_strings()
76 {
77 }
78