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
-2.0814446e+199
  
-1.1987322e+137
variable3 (double)   i_feel_like_a_banana (double)
144   152
2.78888424e-157
  
1.7550713e+192

Memory

128
129
130
131
132
133
134
135
variable1 = -2.0814446e+199
136
137
138
139
140
141
142
143
variable2 = -1.1987322e+137
144
145
146
147
148
149
150
151
variable3 = 2.78888424e-157
152
153
154
155
156
157
158
159
i_feel_like_a_banana = 1.7550713e+192

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

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