Skip to content
EMPS intranet

Back to top
Hi!   Hi!           Start main()

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] = -144972863
136
137
138
139
140
141
142
143
ar[0][1] = 164331880
ar[0][2] = 134536188
144
145
146
147
148
149
150
151
ar[0][3] = 134535992
ar[1][0] = 1
152
153
154
155
156
157
158
159
ar[1][1] = -4453660
ar[1][2] = -145310296
160
161
162
163
164
165
166
167
ar[1][3] = 1
ar[2][0] = 200
168
169
170
171
172
173
174
175
ar[2][1] = -144972985
ar[2][2] = -143581184
176
177
178
179
180
181
182
183
ar[2][3] = 1
ar[3][0] = -144972770
184
185
186
187
188
189
190
191
ar[3][1] = 134536188
ar[3][2] = 134535992
192
193
194
195
ar[3][3] = 1

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

Show Advanced options

.
                                                                                                                                                                                                                                                                       

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