Thread: Jumping Into C++ Quiz Question.

  1. #1
    Registered User
    Join Date
    Sep 2017
    Posts
    1

    Question Jumping Into C++ Quiz Question.

    Chapter 13 Quiz, Problem 3:

    3. Which of the following gives the memory address of a variable pointed to by pointer p_a?

    A. p_a;
    B. *p_a;
    C. &p_a;
    D. address( p_a );
    The book states that C is the correct answer. But with the wording that states, "a variable pointed to..." , I really think the answer is A, because C gives the memory address of pointer p_a, not of a. (I am assuming a is the variable pointed to because it follows the pattern from the rest of the chapter)

    Am I missing something?

  2. #2
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,738
    You are right to think that the correct answer is A, the book is wrong.
    Devoted my life to programming...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 04-04-2017, 12:54 AM
  2. doubt in one of my c quiz question.
    By Rakesh o_O in forum C Programming
    Replies: 15
    Last Post: 10-19-2012, 10:40 PM
  3. question in quiz yourself
    By layla in forum C++ Programming
    Replies: 1
    Last Post: 11-26-2010, 03:11 PM
  4. Memory quiz, question 2
    By pheres in forum C++ Programming
    Replies: 4
    Last Post: 06-08-2008, 05:46 AM
  5. Quiz question
    By volk in forum C++ Programming
    Replies: 4
    Last Post: 03-18-2003, 04:51 PM

Tags for this Thread