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...
// A true 2-D array #define N 4
int main(){ » int ar[N][N]; » ar[0]0=17; » ar[N-1]0=13; » ar[N-1](N-1)=10; » return (0); }
...
Memory

main()

132
133
134
135
ar[0][0] = 361867905
136
137
138
139
140
141
142
143
ar[0][1] = -152659731
ar[0][2] = -157866043
144
145
146
147
148
149
150
151
ar[0][3] = 853196286
ar[1][0] = 2000958970
152
153
154
155
156
157
158
159
ar[1][1] = 1827162685
ar[1][2] = 590954428
160
161
162
163
164
165
166
167
ar[1][3] = 1855603727
ar[2][0] = -380541132
168
169
170
171
172
173
174
175
ar[2][1] = 866092884
ar[2][2] = -597023102
176
177
178
179
180
181
182
183
ar[2][3] = -144858627
ar[3][0] = 527344087
184
185
186
187
188
189
190
191
ar[3][1] = 756807909
ar[3][2] = 1741942417
192
193
194
195
ar[3][3] = -1767673042

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

Show Advanced options

.
                                                                                                                                                                                                                                                                       

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