Description: 1) defines an int array of length 10 nArr, using the given initial value input from the keyboard or the way to an array of 10 elements of the assignment define an int* type pointer variable pInt, and nArr in the first address into pInt 2) Function 1: from the keyboard input 0 .. 9 number two into i, j, exchange subscript i, j of the two array elements stored in the content, and outputs before and after the exchange of the exchange result 3) Function 2: pointer indirection operator, re-switching array element i, j in the content, and outputs the exchanged content. 4) Function 3: 8 hexadecimal output in the form pInt, pInt+ i, pInt+ j values and addresses in your lab report explaining variation.
To Search:
File list (Check if you may need any files):
2.cpp