Question: Using c++ Although it might seem odd, the char data type (which we use for storing character data-i.e. the symbols on a keyboard) is actually
Although it might seem odd, the char data type (which we use for storing character data-i.e. the symbols on a keyboard) is actually a variant of the integer data type: it is just a number representing the ASCII code for characters. Since it only occuples 1 byte (8-bits) of memory, it can only store very small numbers, from-128 to +127 (the positive numbers represent the standard keyboard symbols letters, numbers, punctuation, etc). Since it is just a number, we can do some interesting character manipulations with arithmetic-which will come in handy later on when we try our hand at cryptography-but for now, we will just do some really simple operations. First, try declaring a char variable and initializing it to different values( 32, and
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
