1. Engineering
  2. Computer Science
  3. questions 1 10 uses the following declarations int array9 233741932083489391981876...

Question: questions 1 10 uses the following declarations int array9 233741932083489391981876...

Question details

Questions 1 10 Uses the following declarations: int array[9] (23,37,4,193,2083,489,39,198,1876}; //The above declaration represents the following array (Use the memory addresses as shown): 1 2 23 37 4193 I 2083 489 39 198 1 1876I (1000) (1004) (1008) (1012) (1016) (1020) (1024) (1028) (1032) int *a_ptr; int *b_ptr: int *c ptr: //These pointer declarations represent the following (Use the memory addresses as shown): (2000) (2004) (2008)QUESTION 5 Consider the following statement inserted at //ADDITIONAL STATEMENT(S) GOES HERE: cout < &b_ptr << endl; What is displayed by the above statement? a. 2004 b. 2008 , C. 2000 o d. 2012 QUESTION 6 Consider the following statement(s) inserted at //ADDITIONAL STATEMENT(S) GOES HERE: a_ptr &array[3]: b ptr-a ptr+ 3 cout << (c ptr-2) < endl: What is displayed by the above statements? a 1000 O b. 1012 O 1016 o d. 1028QUESTION 7 Consider the following statements inserted at //ADDITIONAL STATEMENT(S) GOES HERE: a ptr -&array[3]: ptr-b_ptr-1 cout <<&(c_ptr[-2]) < endl: What is displayed by the above statements? o a. 2000 b. 1016 О С. 1012 o d- 193 QUESTION 8 Consider the following statements inserted at //ADDITIONAL STATEMENT(S) GOES HERE: a_ptr &array[3]: b ptr-a ptr+ 3 Cptr bptr -1 cout <(b_ptr[1]+*(&c ptr-array[* (c_ptr+1) *(c_ptr- 4)): What is displayed by the above statements? O 190781 O 14062 O 235 2004QUESTION 9 Consider the following statement inserted at /IADDITIONAL STATEMENT(S) GOES HERE: ptr-array: cout << &c ptr<endl: a-1000 Ob 23 O . 2008 o d 1012 QUESTION 10 Consider the following statement inserted at IADDITIONAL STATEMENT(S) GOES HERE cout << (array + 3)4] endl: Which of the following is true for the above statement? O 1012 O 1028 O 193 O 198

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution