Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C Programming (http://www.velocityreviews.com/forums/f42-c-programming.html)
-   -   Re: Why does it not work? (http://www.velocityreviews.com/forums/t962145-re-why-does-it-not-work.html)

Keith Thompson 06-25-2013 10:01 PM

Re: Why does it not work?
 
"paskali" <2970invalid@webuse.net> 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) kst-u@mib.org <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"


All times are GMT. The time now is 07:41 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.