have 5 min to answer

This is a discussion on have 5 min to answer within the C Programming forums, part of the General Programming Boards category; can some one quickly answer this . guess even What, if any, is the cause of the compiler error that ...

  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    54

    have 5 min to answer

    can some one quickly answer this . guess even

    What, if any, is the cause of the compiler error that may be produced when compiling the following program?
    Code:
    int main ( int argc, char * argv[] )
    {
    int i
        fprintf(stdout,"HelloWorld!")
    }
    A. There is no error, the program compiles correctly
    B. Missing semicolon
    C. Missing main() method
    D. Undefined reference

  2. #2
    Registered User
    Join Date
    Oct 2007
    Posts
    36
    B. Missing semicolon

  3. #3
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    and D

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,451
    Get a compiler and find out for yourself!.

    Oh wait, I get it, 5 minutes, it's "Urgent" and you're doing some online test, or surfing whilst in class....
    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.

  5. #5
    Fear the Reaper...
    Join Date
    Aug 2005
    Location
    Toronto, Ontario, Canada
    Posts
    625
    Jesus, the C board is gonna make this guy pass his class...
    Teacher: "You connect with Internet Explorer, but what is your browser? You know, Yahoo, Webcrawler...?" It's great to see the educational system moving in the right direction

  6. #6
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    Jesus, the C board is gonna make this guy pass his class...
    Doubtful. We've seen just about every test question you can think of. Most of us can smell homework or test by the second sentence.

  7. #7
    Registered User
    Join Date
    Oct 2001
    Posts
    2,934
    >Most of us can smell homework or test by the second sentence.
    I'm glad you said most.

  8. #8
    Fear the Reaper...
    Join Date
    Aug 2005
    Location
    Toronto, Ontario, Canada
    Posts
    625
    Doubtful. We've seen just about every test question you can think of. Most of us can smell homework or test by the second sentence.
    Apparently not everyone, and there's been plenty of smell to go around (Not including this topic) :

    C problem (simple)
    Help
    nooby question C
    Teacher: "You connect with Internet Explorer, but what is your browser? You know, Yahoo, Webcrawler...?" It's great to see the educational system moving in the right direction

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Looking for constructive criticism
    By wd_kendrick in forum C Programming
    Replies: 16
    Last Post: 05-28-2008, 09:42 AM
  2. One quick question...
    By Kross7 in forum C++ Programming
    Replies: 10
    Last Post: 04-13-2007, 09:50 PM
  3. Tic Tac Toe program...
    By Kross7 in forum C++ Programming
    Replies: 12
    Last Post: 04-12-2007, 03:25 PM
  4. Ranged numbers
    By Desolation in forum Game Programming
    Replies: 8
    Last Post: 07-25-2006, 10:02 PM
  5. code help :)
    By Unregistered in forum C Programming
    Replies: 4
    Last Post: 02-28-2002, 12:12 PM

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