C code working using CC but not with gcc

gkarthi29 karthikeyan.gangatharan@lntinfotech.com
Thu Apr 17 05:12:00 GMT 2008

Hi All

consider the following c code,

        char *x;
        if (*x==NULL)

the code prints "hello" if i compile using CC....

but when i compile the same code using gcc it gives "Memory

Why is it so? Do i need to include any extra options in gcc to make it work?

My objective it to make the above code work using gcc without any code

Kindly Suggest...

View this message in context: http://www.nabble.com/C-code-working-using-CC-but-not-with-gcc-tp16738838p16738838.html
Sent from the gcc - Help mailing list archive at Nabble.com.

More information about the Gcc-help mailing list