Skip to content
EMPS intranet

Back to top

Note

  • This code has been compiled to show the internal calculations of the addresses of array elements like this: 824.
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...
int main(){
  ...
» int let; » while (scanf("%d", &let)==1&&let>0&&let<=26) printf("%c\n", "_ABCDEFGHIJKLMNOPQRSTUVWXYZ"[let]); » return 0;
}
Memory

Fixed strings

132
133
134
135
'_' 'A' 'B' 'C'
136
137
138
139
140
141
142
143
'D' 'E' 'F' 'G' 'H' 'I' 'J' 'K'
144
145
146
147
148
149
150
151
'L' 'M' 'N' 'O' 'P' 'Q' 'R' 'S'
152
153
154
155
156
157
158
159
'T' 'U' 'V' 'W' 'X' 'Y' 'Z' '\0'
184
185
186
187
188
189
190
191
?
'%' 'c' '\n' '\0'
?
?
?
192
193
194
195
196
197
198
199
?
?
?
?
?
'%' 'd' '\0'

main()

328
329
330
331
let = 1

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

Show Advanced options

.

Input was:

7 26 21 9 15 12 4 19

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

Output

G
Z
U
I
O
L
D
S
                                                                                                                                                                                                                                                                       

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