True or False

This is a discussion on True or False within the C Programming forums, part of the General Programming Boards category; I have problem figuring out whether the following are true or false, please help: 1. A single #include directive may ...

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    6

    Unhappy True or False

    I have problem figuring out whether the following are true or false, please help:

    1. A single #include directive may name several files.

    2. An argument and its corresponding parameter must have the same name for a function.

    3. Call by value ensures that an invoked function cannot change the content of any variable that occurs as an arguement.

    4. The parameter declaration for a multidimensional array must include the size for every dimension.

    5. An array's name is a pointer constant.

    6. A function's name is a pointer constant.

    7. The address operator & cannot be applied to a register variable.

    8. A self-referential structure must defined with a tag.

    9. A typedef can only be used with a tagged structure.

    10. The stdin is a pointer variable.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    How hard is it to look up true-false questions in your textbook?

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    The answer is 0xBD.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  4. #4
    Technical Lead QuantumPete's Avatar
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    894
    Quote Originally Posted by matsp View Post
    The answer is 0xBD.

    --
    Mats
    That's what I thought too. It's so simple once you know.

    QuantumPete
    "No-one else has reported this problem, you're either crazy or a liar" - Dogbert Technical Support
    "Have you tried turning it off and on again?" - The IT Crowd

  5. #5
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by matsp View Post
    The answer is 0xBD.

    --
    Mats
    Sure, but is it Big Endian or Little Endian?
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

  6. #6
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by cpjust View Post
    Sure, but is it Big Endian or Little Endian?
    Ah, good point. Last question = x << 0.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  7. #7
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Quote Originally Posted by noob programmer View Post
    I have problem figuring out whether the following are true or false, please help:

    1. A single #include directive may name several files.

    2. An argument and its corresponding parameter must have the same name for a function.

    3. Call by value ensures that an invoked function cannot change the content of any variable that occurs as an arguement.

    4. The parameter declaration for a multidimensional array must include the size for every dimension.

    5. An array's name is a pointer constant.

    6. A function's name is a pointer constant.

    7. The address operator & cannot be applied to a register variable.

    8. A self-referential structure must defined with a tag.

    9. A typedef can only be used with a tagged structure.

    10. The stdin is a pointer variable.
    All of them are Z.

  8. #8
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by Thantos View Post
    All of them are Z.
    Z = high-imedance input?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  9. #9
    Technical Lead QuantumPete's Avatar
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    894
    Quote Originally Posted by matsp View Post
    Z = high-imedance input?

    --
    Mats
    No, no, the formal specification language: link

    QuantumPete
    "No-one else has reported this problem, you're either crazy or a liar" - Dogbert Technical Support
    "Have you tried turning it off and on again?" - The IT Crowd

  10. #10
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Quote Originally Posted by matsp View Post
    Z = high-imedance input?

    --
    Mats
    well in this case it wouldn't be input

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. need help making a dot bounce up and down y axis in this prog
    By redwing26 in forum Game Programming
    Replies: 10
    Last Post: 08-05-2006, 12:48 PM
  2. Why only 32x32? (OpenGL) [Please help]
    By Queatrix in forum Game Programming
    Replies: 2
    Last Post: 01-23-2006, 01:39 PM
  3. 1 or 0 == true or false?
    By Discolemonade in forum C++ Programming
    Replies: 4
    Last Post: 08-14-2005, 04:08 PM
  4. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  5. opengl program as win API menu item
    By SAMSAM in forum Game Programming
    Replies: 1
    Last Post: 03-03-2003, 06:48 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21