Re: Why does it not work?

Discussion in 'C Programming' started by Keith Thompson, Jun 25, 2013.

  1. "paskali" <> writes:
    > Hi dear friends, the following:
    >
    > /* file: test.c */
    > /* begin */
    > #include <stdio.h>
    > int main(int argc, char *argv[]) {
    > if(argv[1] == "test")
    > puts("OK!");
    > else
    > puts("ERROR");
    > printf("You wrote %s\n", argv[1]);
    > return 0;
    > }

    [...]
    > Why?


    The comp.lang.c FAQ is at <http://www.c-faq.com/>.

    You've just asked question 8.2.

    --
    Keith Thompson (The_Other_Keith) <http://www.ghoti.net/~kst>
    Working, but not speaking, for JetHead Development, Inc.
    "We must do something. This is something. Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"
     
    Keith Thompson, Jun 25, 2013
    #1
    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. jblazi
    Replies:
    5
    Views:
    440
    jblazi
    Aug 16, 2004
  2. Horace Nunley

    why why why does function not work

    Horace Nunley, Sep 27, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    466
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Sep 27, 2006
  3. Mr. SweatyFinger

    why why why why why

    Mr. SweatyFinger, Nov 28, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    917
    Mark Rae
    Dec 21, 2006
  4. Mr. SweatyFinger
    Replies:
    2
    Views:
    2,035
    Smokey Grindel
    Dec 2, 2006
  5. Tarun
    Replies:
    5
    Views:
    398
    Tarun
    Jul 14, 2005
Loading...

Share This Page