c programming

This is a discussion on c programming within the C Programming forums, part of the General Programming Boards category; Hey, i know we r not meant to post a whole bunch of questions for answers but this is just ...

  1. #1
    Registered User
    Join Date
    Jun 2010
    Posts
    1

    c programming

    Hey, i know we r not meant to post a whole bunch of questions for answers but this is just a practice exam that i would like some solutions for. Sorry if this is against the rules but please feel free to help me out. thanks
    Attached Images Attached Images

  2. #2
    Registered User
    Join Date
    May 2010
    Location
    Naypyidaw
    Posts
    1,314
    Ask specific question. What problem(s) are you having?
    Show us what you've done.

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    30
    Have you tried typing all those up and compiling it, that'll spill the output too

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,451
    Here is what you should be doing:
    - Write the answer yourself
    - Compile and run the answer yourself
    - If you're right, feel good about it.


    If you're wrong, and you're still confused by what the compiler outputs, then post that specific question here, along with what you think the answer should be and what your compiled code actually did.

    Dumping a scan of your homework just doesn't cut it.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

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