1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{
"metadata": {
"name": "",
"signature": "sha256:bd4e511a3dbdd189491e3271c86cff9ce5fc919ed7457d400a67c288e55ad433"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter 13 : Pointers"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example: 1, Page Number: 5.104"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Program to print address and value of variable\n",
"#Local definitions\n",
"sno = 39\n",
"\n",
"#Result\n",
"print \"Address of sno = %u\" %id(sno)\n",
"print \"Value of sno = %d\" %sno"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Address of sno = 20917296\n",
"Value of sno = 39\n"
]
}
],
"prompt_number": 7
}
],
"metadata": {}
}
]
}
|