Wrox Programmer Forums
|
BOOK: MCSD Certification Toolkit (Exam 70-483): Programming in C#
This is the forum to discuss the Wrox book MCSD Certification Toolkit (Exam 70-483): Programming in C# by Tiberiu Covaci, Rod Stephens, Vincent Varallo, Gerry O'Brien; ISBN: 978-1-118-61209-5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: MCSD Certification Toolkit (Exam 70-483): Programming in C# 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 August 5th, 2013, 02:56 AM
Registered User
 
Join Date: Aug 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question Defining a 0 integer, bit confused ...

I thought the required statement is

int value = 0;

However the answer given in the test questions at the end of chapter one is

value = 0;

Actually should fire up visual studio and have a play, interested in others thoughts however
 
Old August 5th, 2013, 12:23 PM
Registered User
 
Join Date: Jun 2013
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default Defining a 0 integer, bit confused ...

Salient,

Yes, I think that is boo boo , the right answer to me is
int value = 0;
 
Old August 5th, 2013, 12:39 PM
Rod Stephens's Avatar
Wrox Author
 
Join Date: Jan 2006
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
Default

I can't find this question in the book. Where is it? (I don't think it's at the end of Chapter 1.)
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)
 
Old August 5th, 2013, 01:12 PM
Registered User
 
Join Date: Jun 2013
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default Defining a 0 integer, bit confused ...

Rod,

It is question #1 in chapter 2.
 
Old August 5th, 2013, 04:59 PM
Rod Stephens's Avatar
Wrox Author
 
Join Date: Jan 2006
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
Default

Yep, you're right. value = 0; only initializes it but int value = 0; declares and initializes it.
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)





Similar Threads
Thread Thread Starter Forum Replies Last Post
I am still just a little bit confused vbboyd BOOK: Beginning ASP.NET 4 : in C# and VB 1 June 19th, 2013 03:16 PM
I am trying to go from 32 bit Vista to 64 bit Windows 7. Bill_Thompson Windows Server 0 May 5th, 2012 07:25 PM
Chapter 2 - Bitwise NOT ~ just a bit confused djkarstenv BOOK: Ivor Horton's Beginning Visual C++ 2010 2 November 22nd, 2011 09:24 AM
Defining the Variables. dpkbahuguna Beginning VB 6 2 November 1st, 2006 12:40 PM
64 Bit - Issue in 64 bit IIS calling Win32 API Hubman General .NET 1 August 24th, 2006 09:19 AM





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