Wrox Programmer Forums
|
BOOK Programming Interviews Exposed: Secrets to Landing Your Next Job 2nd Ed ISBN: 978-0-470-12167-2
This is the forum to discuss the Wrox book Programming Interviews Exposed: Secrets to Landing Your Next Job, 2nd Edition by John Mongan, Noah Suojanen, Eric Giguère; ISBN: 9780470121672
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK Programming Interviews Exposed: Secrets to Landing Your Next Job 2nd Ed ISBN: 978-0-470-12167-2 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 29th, 2010, 10:04 PM
Registered User
 
Join Date: Mar 2010
Posts: 8
Thanks: 0
Thanked 8 Times in 8 Posts
Default Page 41 - C with delete?

On Page 41, you state:

Quote:
Variables cannot be passed by reference in C, so the solution is to pass a pointer to the variable you want to change - in this case, a pointer to the head pointer.
It seems an odd mix to be lamenting the deficiencies of C, when the example code then uses delete, which does not exist in C, but in C++.

I can appreciate that a reference to a pointer can look confusing as well, but in general, I find the Programming Interviews Exposed book to be a competent tutor, so it somewhat surprised me to see the book shy away from tackling the problem of how to read a type name.

Also, in these examples (as on page 41), you often check to see if *head is not NULL, but you seem comfortable in assuming that head itself is not NULL. Perhaps this time, I am the cynical one.

Regards,
Matt
The Following User Says Thank You to MattCruikshank For This Useful Post:
WayneHeym (May 27th, 2011)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Page 34-41 of the book curiaquita BOOK: Professional C++ 0 December 29th, 2009 11:42 AM
chapter 2 - page 41 problem creating the page.. jorjiana BOOK: Beginning Oracle Application Express ISBN: 9780470388372 2 August 22nd, 2009 04:25 AM
Properties box for the body element -- Page 40-41 zcorker ASP.NET 1.0 and 1.1 Basics 3 October 25th, 2007 01:14 AM
Pg. 41: Properties Window Blank SomeoneKnows BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 3 September 28th, 2007 10:16 AM
Properties in Body Tag - Pg. 40/41 jabs BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 1 December 5th, 2006 09:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.