Question: In the code below, word is a char array containing the text Hello World!. Suppose we execute the code below: char* ptr; ptr = word;

 In the code below, word is a char array containing thetext "Hello World!". Suppose we execute the code below: char* ptr; ptr

In the code below, word is a char array containing the text "Hello World!". Suppose we execute the code below: char* ptr; ptr = word; If word[0] is stored at address 3000 after executing the above code, what is the value of each of the following expressions? Don't worry about the hexadecimal representation, use normal decimal numbers and simple addition. (4 pts each) word : ...... &word[5] : *ptr ptr+2 *(ptr+2) : Given below is a program that takes in two 10- element integer arrays (Array1 and Array2), and identifies the elements that exist in Array1 and not in Array2, and stores them in a third array called difference. Fill in the blanks to help the program work as it should. Note that this program catches the different elements, no matter at which index they appear in these two arrays. An example on 3- element arrays: if Array1={1,2,3) and Array2= {2,1,3), difference will contain (). If Array1= {1,2,4} and Array2={2.1.3), difference will contain (4) int main() { int Array11 = {5, 6, 7, 33, 55, 34, 99, 100, 45, 4}; int Array21 = {13, 4, 6, 11, 9, 7, 5, 2, 55, 88); int difference[10] = {}; // in the worst case all 10 elements will be different bool found; int index = 0; for (int i = 0; i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!