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:
- int *xptr = &x;
- *xptr = 8;
- int y = *xptr;
- xptr++;
- xptr += 3;
- int **xptrptr = &xptr;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
