Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedExplain 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic6 Database Programming

Authors: John W. Fronckowiak, David J. Helda

1st Edition

0764532545, 978-0764532542

More Books

Students also viewed these Databases questions

Question

Why We Listen?

Answered: 1 week ago