Question: Please explain the codes in each line. The codes from 146 to 155. Pointer Lab in C * 141 ** 132 /* 133 * Return
Please explain the codes in each line. The codes from 146 to 155. Pointer Lab in C
* 141 ** 132 /* 133 * Return the size of a pointer in bytes. 134 135 * ALLOWED: 136 * Pointer operators: *, & 137 * Binary integer operators: -, +, * 138 * Unary integer operators: ! 139 * Shorthand operators based on the above: ex. +=, *=, ++, --, etc. 140 * DISALLOWED: 142 * Pointer operators: O (Array Indexing Operator) 143 Binary integer operators: &, &&, l. 11. , >, ==, !=, ^, /, % 144 Unary integer operators: ~, - 145 */ 146 int pointerSize() { int * ptrArray(10); 148 int ** ptrptri; 149 int ** ptrptr2; 150 // Write code to compute size of a pointer. 151 152 ptrPtr1= ptrArray; 153 ptrptr2=ptrptr1+1; 154 155 return (char *) ptrptr2- (char *) ptrptr1; ; 156} * 147
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
