Skip to content
EMPS intranet

Back to top
Hi!   Hi!           Start program

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...
// Demonstration function: return its argument plus 2;
double xplus2(double x){ » return x+2; }
...
int main(){ » double r; » r=xplus2(1.7); » printf("result is %g\n", r); » return 0; }
...
Memory

xplus2()

128
129
130
131
132
133
134
135
x = 1.7

main()

168
169
170
171
172
173
174
175
r = 1.17139969e+192

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

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

result is 3.7
                                                                                                                                                                                                                                                                       

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