Re: Ternary Operator ? :

Posted 31 May 2009 - 10:49 PM

It prints...Nothing. Absolutely nothing...How bizarre...You would think because of all the ++'s atleast a 1 would be formed...

I added a for loop and this is the output I got...Interesting::
The i value is: 0 and the x value is: 7
The i value is: 1 and the x value is: 28
The i value is: 2 and the x value is: 91
The i value is: 3 and the x value is: 280
The i value is: 4 and the x value is: 847
The i value is: 5 and the x value is: 2548
The i value is: 6 and the x value is: 7651
The i value is: 7 and the x value is: 22960
The i value is: 8 and the x value is: 68887
The i value is: 9 and the x value is: 206668