Thread: MS bug #2

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    72

    MS bug #2

    Code:
    #include <iostream.h>
    int main(char*, char*[])
    {
    	int c=0; cout<<c<<c++; 
    	return 0;
    }
    you can expect from that code any other result but it displays "10" :-)))

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    The standard says it's completely undefined... so in which way is displaying 1 0 a bug ? It just shows the priorities of the languages implementation...
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    72
    ok.
    just the result was unexpected and that's all.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Speed test result
    By audinue in forum C Programming
    Replies: 4
    Last Post: 07-07-2008, 05:18 AM
  2. MS Visual C++ 6.0 bug?
    By skillet in forum C++ Programming
    Replies: 4
    Last Post: 09-12-2005, 08:55 PM
  3. Ping
    By ZakkWylde969 in forum Tech Board
    Replies: 5
    Last Post: 09-23-2003, 12:28 PM
  4. MS Word BUG !!
    By compiler in forum Tech Board
    Replies: 12
    Last Post: 06-27-2003, 09:56 AM
  5. MS bug
    By damyan in forum Windows Programming
    Replies: 1
    Last Post: 11-01-2001, 08:09 PM