Re: Is this a Bug or shall this so?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5 May 2011 20:44, Christian Klahn wrote:
> Hello
>
> I have discovered a strange something.
>
> This Code compiled witheout Errors and gives "AB" to the Terminal:
> ------------------------------------------------
> #include <iostream>
>
> int main()
> {
>    char ch[] = "AB\n";
>    std::cout << ch;
>    '\n';
>    return 0;
> }
> ------------------------------------------------
> Is the Code in line seven valid or is that a Bug in gcc/g++?

The code is valid, although the expression on line 7 is useless and
doesn't do anything.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux