Could somebody tell me the difference?

Discussion in 'C Programming' started by Kenny McCormack, Aug 8, 2006.

  1. between

    printf("hello, world\n");

    and

    printf("goodbye, universe\n");

    ?
     
    Kenny McCormack, Aug 8, 2006
    #1
    1. Advertising

  2. "Kenny McCormack" <> wrote in message
    news:ebaagt$aqr$...
    > between
    >
    > printf("hello, world\n");
    >
    > and
    >
    > printf("goodbye, universe\n");
    >
    > ?


    -1
     
    andrew queisser, Aug 8, 2006
    #2
    1. Advertising

  3. 1st one will print out 13 characters, so will return 13.
    2nd one will print out 18 characters, so will return 18.

    Kenny McCormack wrote:
    > between
    >
    > printf("hello, world\n");
    >
    > and
    >
    > printf("goodbye, universe\n");
    >
    > ?
     
    Parahat Melayev, Aug 8, 2006
    #3
  4. "andrew queisser" <> wrote in message
    news:7u2Cg.1700$...
    > "Kenny McCormack" <> wrote in message
    > news:ebaagt$aqr$...
    >> between
    >>
    >> printf("hello, world\n");
    >>
    >> and
    >>
    >> printf("goodbye, universe\n");
    >>
    >> ?

    >
    > -1
    >
    >

    Really? I get -5.

    --
    Fred L. Kleinschmidt
    Boeing Associate Technical Fellow
    Technical Architect, Software Reuse Project
     
    Fred Kleinschmidt, Aug 8, 2006
    #4
  5. Troll Alert: Kenny McCormack

    The only way to deal with trolls is to limit your reaction to reminding
    others not to respond to trolls.

    Information on trolls: http://members.aol.com/intwg/trolls.htm

    --

    Frederick Gotham
     
    Frederick Gotham, Aug 8, 2006
    #5
  6. Kenny McCormack wrote:
    >
    > between
    >
    > printf("hello, world\n");
    >
    > and
    >
    > printf("goodbye, universe\n");
    >
    > ?


    The first is 13, and the second is 18, so the difference is 5. (Or
    negative 5, if you like.)

    --
    +-------------------------+--------------------+-----------------------+
    | Kenneth J. Brody | www.hvcomputer.com | #include |
    | kenbrody/at\spamcop.net | www.fptech.com | <std_disclaimer.h> |
    +-------------------------+--------------------+-----------------------+
    Don't e-mail me at: <mailto:>
     
    Kenneth Brody, Aug 8, 2006
    #6
  7. Kenny McCormack

    Default User Guest

    Parahat Melayev wrote:

    > 1st one will print out 13 characters, so will return 13.
    > 2nd one will print out 18 characters, so will return 18.


    See below.



    Brian

    --
    Please don't top-post. Your replies belong following or interspersed
    with properly trimmed quotes. See the majority of other posts in the
    newsgroup.
     
    Default User, Aug 8, 2006
    #7
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Peng Yu
    Replies:
    0
    Views:
    1,153
    Peng Yu
    Aug 14, 2003
  2. Pasha
    Replies:
    4
    Views:
    2,624
    Pasha
    Apr 28, 2006
  3. John Dean
    Replies:
    4
    Views:
    266
    John Dean
    Sep 15, 2003
  4. John Dean
    Replies:
    0
    Views:
    284
    John Dean
    Sep 4, 2004
  5. Peter Szinek
    Replies:
    5
    Views:
    111
    SonOfLilit
    Mar 28, 2007
Loading...

Share This Page