Re: Why does it not work?

Discussion in 'C Programming' started by Xavier Roche, Jun 25, 2013.

  1. Xavier Roche

    Xavier Roche Guest

    Le 25/06/2013 21:44, paskali a écrit :
    > if(argv[1] == "test")


    You are comparing addresses of arrays (of chars), not the actual
    content. Two arrays might be on different locations in memory, while
    containing the same data.
     
    Xavier Roche, 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:
    435
    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:
    461
    =?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:
    910
    Mark Rae
    Dec 21, 2006
  4. Mr. SweatyFinger
    Replies:
    2
    Views:
    1,999
    Smokey Grindel
    Dec 2, 2006
  5. Tarun
    Replies:
    5
    Views:
    394
    Tarun
    Jul 14, 2005
Loading...

Share This Page