Skip to content
EMPS intranet

Back to top
Hi!   Hi!           Next step ›

Try stepping through the code


  Value and type of last evaluated expression: Address of array element: Address of array elementx:  (none)

Your browser does not support the canvas element which will make some the features unavailable.

If you are using Internet Explorer within the University of Exeter try going to the Settings menu (probably the gear shape at the top right of this page), selecting "Compatibility View settings", unchecking "Display intranet sites in Compatibility View" and reloading this page.

Code

 Header...
double variable1, variable2, variable3; double i_feel_like_a_banana; variable1=2.1; variable2=1.3; variable3=variable1+variable2; i_feel_like_a_banana=sqrt(variable1*variable1 +variable2*variable2+variable3*variable3); variable1=10.0; variable2=variable2+variable1; printf("Distance; %g\n", i_feel_like_a_banana);

Data

variable1 (double)   variable2 (double)
128   136
4.24399158e-312
  
-2.71660433e+267
variable3 (double)   i_feel_like_a_banana (double)
144   152
-1.02629799e+267
  
4.9384487e-270

Memory

128
129
130
131
132
133
134
135
variable1 = 4.24399158e-312
136
137
138
139
140
141
142
143
variable2 = -2.71660433e+267
144
145
146
147
148
149
150
151
variable3 = -1.02629799e+267
152
153
154
155
156
157
158
159
i_feel_like_a_banana = 4.9384487e-270

NB: the actual memory address of each variable is the
address shown plus 4288890184 (0xFFA34548).

Show Advanced options

.
Show output (Before looking at the output, work out what you think it put should be and see if you are right.)

Output

Distance; 4.20238
                                                                                                                                                                                                                                                                       

Validate   Link-check © Copyright & disclaimer Share
Back to top