Question: please explain your codes (solutions) * * Modify intArray[5] to be the value 449 using only intArray and pointer arithmetic. * * ALLOWED: Pointer operators:
please explain your codes (solutions)
* * Modify intArray[5] to be the value 449 using only intArray and pointer arithmetic. * * ALLOWED: Pointer operators: *, & Binary integer operators: -, +, *, >, ==, Unary integer operators: !, Shorthand operators based on the above: ex. +=, *=, ++, --, ~= etc. A * * * * * * DISALLOWED: Pointer operators: [] (Array Indexing Operator) Binary integer operators: &, &&, l, ll, !=, 1, % Unary integer operators: */ int changeValue() { int intArray(10); int * intPtr1 = intArray; // Remember not to use constants greater than 255. // Remember to use * to dereference. You cannot use [
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
