Comment on Tutorial - Use of Conditional (Ternary) Operator in C++ By Baski



Comment Added by : Syed Mamun Raihan

Comment Added at : 2008-09-10 11:29:42

Comment on Tutorial : Use of Conditional (Ternary) Operator in C++ By Baski
There is another similar discussion on use of ternery operator.
IMHO: condition should be simple enough and should be bi-valued and not use this operator in a multi-valued by daisy chaining the expression.
The good coder writes elegent code other write codes. And every one writes code that works!!!


View Tutorial



Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Great! Thanks!
View Tutorial          By: sciarp at 2008-05-11 05:04:17

2. Great tutorial. THX.
View Tutorial          By: Velvetin at 2009-03-21 11:05:19

3. nice one
View Tutorial          By: navyasri at 2012-05-02 04:41:10

4. Thank you for the code. Could you please send me c
View Tutorial          By: Ying at 2009-08-17 13:58:16

5. Thank you so much for this. This helped me through
View Tutorial          By: GeeAsphyxiated at 2009-08-31 08:03:07

6. thanks a lot............
View Tutorial          By: mks at 2013-01-03 06:50:05

7. hi,
can you tell me how to run the code to

View Tutorial          By: raghu at 2008-12-26 03:15:52

8. this work is good
View Tutorial          By: sanath at 2008-12-15 01:18:43

9. Thnak you very much i got much of help for my proj
View Tutorial          By: Xshay at 2012-01-21 06:26:49

10. Hello, I have stupid questions, but I need to ask
View Tutorial          By: Johnson Edison at 2012-12-13 17:10:57