Question: Note: Answer in context of c++ language. 1) Given the following array int arr[] { 1, 2, 3, 4, 5 }; Write a statement that

Note: Answer in context of c++ language.

1)

Given the following array

int arr[] { 1, 2, 3, 4, 5 };

Write a statement that finds the address of the third element in arr.

2)What kind of error will you get if you try to dereference a null pointer?

3)

Translate the following C++ statements into English:

  1. int *xptr = &x;
  2. *xptr = 8;
  3. int y = *xptr;
  4. xptr++;
  5. xptr += 3;
  6. int **xptrptr = &xptr;

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!