Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Explain the codes in each line (120-129) please. Pointer Lab in C * 113 * * 107 * Return the size of a double in
Explain the codes in each line (120-129) please. Pointer Lab in C
* 113 * * 107 * Return the size of a double in bytes. 108 109 * ALLOWED: 110 Pointer operators: *, & 111 * Binary integer operators: -, +, * 112 Unary integer operators: ! Shorthand operators based on the above: ex. +, *=, ++, --, etc. 114 115 * DISALLOWED: 116 * Pointer operators: [] (Array Indexing Operator) 117 * Binary integer operators: &, &&, l, ll, , >, ==, !=, ^, 1, % 118 Unary integer operators: ~, 119 */ 120 int doubleSize() { 121 double doubArray[10]; 122 double * doubPtr1; 123 double * doubPtr2; 124 // Write code to compute size of a double. 125 126 doubPtr1 = doubArray; 127 doubPtr2 = doubPtrl + 1; I 128 129 return (char *) doubPtr2 - (char *) doubPtr1; 130 }Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started