Triple Ref Pointers - Computerphile
149.8 هزار بار بازدید -
7 سال پیش
-
The 'magic' trick of pointers
The 'magic' trick of pointers to pointers - Professor Brailsford explains how what might seem complicated will actually simplify your code. (See Extra Bits video for a code walkthrough)
The Professor's Code: http://bit.ly/Computerphile_ProfBrail...
EXTRA BITS - Triple Ref Code: EXTRA BITS: The Triple Ref Code - Com...
n.b. Message from the Prof: Many thanks to all of you who have pointed out that I got over excited at the end of this video and (on the LEGO model) did the pointer reassignment in the wrong order. The correct way ( in the model once again) was to do the short pointer first and the longer pointer second - which I think is done correctly in the downloadable C program.
Facebook: computerphile
Twitter: computer_phile
This video was filmed and edited by Sean Riley.
Computer Science at the University of Nottingham: http://bit.ly/nottscomputer
Computerphile is a sister project to Brady Haran's Numberphile. More at http://www.bradyharan.com
The Professor's Code: http://bit.ly/Computerphile_ProfBrail...
EXTRA BITS - Triple Ref Code: EXTRA BITS: The Triple Ref Code - Com...
n.b. Message from the Prof: Many thanks to all of you who have pointed out that I got over excited at the end of this video and (on the LEGO model) did the pointer reassignment in the wrong order. The correct way ( in the model once again) was to do the short pointer first and the longer pointer second - which I think is done correctly in the downloadable C program.
Facebook: computerphile
Twitter: computer_phile
This video was filmed and edited by Sean Riley.
Computer Science at the University of Nottingham: http://bit.ly/nottscomputer
Computerphile is a sister project to Brady Haran's Numberphile. More at http://www.bradyharan.com
7 سال پیش
در تاریخ 1396/06/10 منتشر شده
است.
149,817
بـار بازدید شده