Characters must also be encoded in binary

ASCII maps characters to numbers

AAS ASCII Math What will print? 1. 2. 3. 4. 5.

printf("%d\n", 'a' – 'A'); printf("%c\n", 'B' + ('a' – 'A')); printf("%c\n", 'b' – ('a' – 'A')); printf("%c\n", 'B' + 1); printf("%c\n", ('z' – 'a' + 1) % 26 + 'a');

AAS #1 Example Prints Z through A

1.

for (int i = 'Z'; i >= 'A'; i--) printf("%c\n", i);

Example #2

AAS Converts a lowercase string to uppercase

1. 2.

char name[] = "milo";

3.

f

for (int i = 0, j = strlen(name); i < j; i++) name[i] = name[i] + ('A' - 'a');

Characters must also be encoded in binary

AAS. Example #2. Converts a lowercase string to uppercase. 1. char name[] = "milo";. 2. for (int i = 0, j = strlen(name); i < j; i++) name[i] = name[i] + ('A' - 'a');. 3. f.

336KB Sizes 0 Downloads 169 Views

Recommend Documents

the god must be crazy in hindi.pdf
... the apps below to open or edit this item. the god must be crazy in hindi.pdf. the god must be crazy in hindi.pdf. Open. Extract. Open with. Sign In. Main menu.

Human Computation Must Be Reproducible - CEUR Workshop ...
a social network website. Not only is it ... In the social sciences, content analysis is a methodology ..... chronic pain in adults, excluding headache, Pain, 80, 1-13.

Must We Be Partisans.pdf
ry. X are. ve. Whoops! There was a problem loading this page. Retrying... Whoops! There was a problem loading this page. Retrying... Must We Be Partisans.pdf.

Commercial Leasing Must Be Undertaken With Proper Help from ...
Commercial Leasing Must Be Undertaken With Proper Help from Experts.pdf. Commercial Leasing Must Be Undertaken With Proper Help from Experts.pdf.

Marriage Must Be Within The Same Religion.pdf
disasters. The allegation, if proved, may be a glaring example of that. The. young couple dreamt of a rosy life but within a week that became a jinxed. matrimony.

A Cartoonist Must Be Able To Work Without Any Inhibition.pdf ...
cartoon published in Dinamalar issue dated 07.01.2013 gave. rise to the impugned prosecution. The respondent who claims to. be an ardent member of the said party alleges that there has. been lowering of the reputation of the party workers in the eyes

Six Characters in Search of an Author
Prompter's box and a small table and chair for the manager. ... Do you suppose that with all this egg-beating business you are on an ..... Yes sir, an old client.