blob: fcca2dc163b05ed4205dd98eb3b8bee34f4c0a27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/bin/python
#===============================================================================
#
# FILE: 10801.py
#
# USAGE: ./10801.py
#
# DESCRIPTION: Store a scalar and print the memory address of it
#
# AUTHOR: Pete Houston (pete), cpan@openstrike.co.uk
# ORGANIZATION: Openstrike
# VERSION: 1.0
# CREATED: 18/04/21
#===============================================================================
i = 5
print ('i is stored at address ' + str (hex (id (i))))
|