A sharp sign <span>(#) </span><span>indicates that a note is one half-tone or semitone step higher compared to a note without a </span>sharp<span>. </span>
Is this self advertising because its not a question so i have no answer for you and if i missed something on the website that was a question let me know
Solution:
It is important because, it has to do operation on so without, data structures and algorithms.
It performs these operation:
1)Take an input
2) Process it
3) Give back the output.
The input can be in any form, for ex while searching for directions on google maps, the starting point and the destination as input to google maps, while logging in to any social sites, We have to give our email and password as input and so on.
Similarly, in the third step, the computer application gives us output in some form or the other.
To make this process efficient, we need to optimize all the three steps.
Answer:
oid changeCase (char char_array[], int array_size ) {
__asm{
mov eax, char_array;
mov edi, 0;
readArray:
cmp edi, array_size;
jge exit;
mov ebx, edi;
shl ebx, 2;
mov cl, [eax + ebx];
check:
//working on it
cmp cl, 0x41;
jl next_indx;
cmp cl, 0x7A;
jg next_indx;
cmp cl, 'a';
jl convert_down;
jge convert_up;
convert_down:
or cl, 0x20; //make it lowercase
jmp write;
convert_up:
and cl, 0x20;
jmp write;
write:
mov byte ptr [eax + ebx], cl
next_indx:
inc edi;
exit:
cmp edi, array_size;
jl readArray;
mov char_array, eax;
}
}
Explanation:
- Move char_array to eax as it is base image
.
- Use ebx as offset
.
- Use ecx as the storage register
.
- check if cl is <= than ASCII value 65 (A)
.