C Programming Day12 - Wikimedia · 10/20/2017  · unsigned unsigned unsigned signed signed signed...

15
C Programming Day12.B Unsigned Numbers, Double Pointers, 2017.10.20 Copyright (c) 2015 - 2017 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".

Transcript of C Programming Day12 - Wikimedia · 10/20/2017  · unsigned unsigned unsigned signed signed signed...

Page 1: C Programming Day12 - Wikimedia · 10/20/2017  · unsigned unsigned unsigned signed signed signed (11>9) u u u i i i %u= %d= %x= %u= %d= %x= 4294967295 ffffffff 4294967295 * -1

C Programming Day12.B

Unsigned Numbers,Double Pointers,

2017.10.20

Copyright (c) 2015 - 2017 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of theGNU Free Documentation License, Version 1.2 or any later version published by the Free SoftwareFoundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy ofthe license is included in the section entitled "GNU Free Documentation License".

Page 2: C Programming Day12 - Wikimedia · 10/20/2017  · unsigned unsigned unsigned signed signed signed (11>9) u u u i i i %u= %d= %x= %u= %d= %x= 4294967295 ffffffff 4294967295 * -1
Page 3: C Programming Day12 - Wikimedia · 10/20/2017  · unsigned unsigned unsigned signed signed signed (11>9) u u u i i i %u= %d= %x= %u= %d= %x= 4294967295 ffffffff 4294967295 * -1
Page 4: C Programming Day12 - Wikimedia · 10/20/2017  · unsigned unsigned unsigned signed signed signed (11>9) u u u i i i %u= %d= %x= %u= %d= %x= 4294967295 ffffffff 4294967295 * -1

variables a, p, q

Page 5: C Programming Day12 - Wikimedia · 10/20/2017  · unsigned unsigned unsigned signed signed signed (11>9) u u u i i i %u= %d= %x= %u= %d= %x= 4294967295 ffffffff 4294967295 * -1

initialized variables a, p, q

Page 6: C Programming Day12 - Wikimedia · 10/20/2017  · unsigned unsigned unsigned signed signed signed (11>9) u u u i i i %u= %d= %x= %u= %d= %x= 4294967295 ffffffff 4294967295 * -1

Operator &

Operator *

Page 7: C Programming Day12 - Wikimedia · 10/20/2017  · unsigned unsigned unsigned signed signed signed (11>9) u u u i i i %u= %d= %x= %u= %d= %x= 4294967295 ffffffff 4294967295 * -1

p's view point

Page 8: C Programming Day12 - Wikimedia · 10/20/2017  · unsigned unsigned unsigned signed signed signed (11>9) u u u i i i %u= %d= %x= %u= %d= %x= 4294967295 ffffffff 4294967295 * -1

q's view point

Page 9: C Programming Day12 - Wikimedia · 10/20/2017  · unsigned unsigned unsigned signed signed signed (11>9) u u u i i i %u= %d= %x= %u= %d= %x= 4294967295 ffffffff 4294967295 * -1
Page 10: C Programming Day12 - Wikimedia · 10/20/2017  · unsigned unsigned unsigned signed signed signed (11>9) u u u i i i %u= %d= %x= %u= %d= %x= 4294967295 ffffffff 4294967295 * -1

pass-by-reference of an int variables

function call

function definition

Page 11: C Programming Day12 - Wikimedia · 10/20/2017  · unsigned unsigned unsigned signed signed signed (11>9) u u u i i i %u= %d= %x= %u= %d= %x= 4294967295 ffffffff 4294967295 * -1

pass-by-reference of an int variables*

function call

function definition

Page 12: C Programming Day12 - Wikimedia · 10/20/2017  · unsigned unsigned unsigned signed signed signed (11>9) u u u i i i %u= %d= %x= %u= %d= %x= 4294967295 ffffffff 4294967295 * -1
Page 13: C Programming Day12 - Wikimedia · 10/20/2017  · unsigned unsigned unsigned signed signed signed (11>9) u u u i i i %u= %d= %x= %u= %d= %x= 4294967295 ffffffff 4294967295 * -1
Page 14: C Programming Day12 - Wikimedia · 10/20/2017  · unsigned unsigned unsigned signed signed signed (11>9) u u u i i i %u= %d= %x= %u= %d= %x= 4294967295 ffffffff 4294967295 * -1
Page 15: C Programming Day12 - Wikimedia · 10/20/2017  · unsigned unsigned unsigned signed signed signed (11>9) u u u i i i %u= %d= %x= %u= %d= %x= 4294967295 ffffffff 4294967295 * -1

an array of pointers