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 30th, 2010, 11:08 PM
Registered User
 
Join Date: Mar 2010
Posts: 8
Thanks: 0
Thanked 8 Times in 8 Posts
Default arrays in C++

On Page 68, the text goes into great detail, describing arrays, and specifically in C/C++. However, you don't mention the fact that there are actually variables with a type that has a specific number of elements in an array.

For instance:

Code:
int a[1000];
In this example, a has the type "an array of one thousand integers," and the compiler actually knows that. This is useful quite often in template code, where the size of the array can be deduced as a template parameter, along with the type of the elements.

Just thought it might be worth referencing. It complicates the discussion of arrays a bit, but it's an important distinction.

Regards,
Matt

Last edited by MattCruikshank; March 30th, 2010 at 11:09 PM.. Reason: clarifying title
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
arrays Moharo PHP How-To 2 April 7th, 2016 01:16 PM
arrays Abraham Java Basics 5 April 11th, 2009 11:10 PM
Multidemmesional Arrays OR arrays gmoney060 Classic ASP Basics 3 November 1st, 2004 03:42 PM





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