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



Subscribe to Tutorials

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. Please tell me the process, how to compile the mid
View Tutorial          By: Manish at 2008-11-14 13:33:43

2. Good intro..
View Tutorial          By: thirunavukkarasu at 2015-01-30 17:32:10

3. Hi lolz,
In order for this code to work, yo

View Tutorial          By: Vijay at 2008-12-10 19:22:04

4. Da program wont work if '#' is the first character
View Tutorial          By: Kala at 2012-09-05 00:24:59

5. we want to learn j2me
View Tutorial          By: vijay at 2010-09-27 02:34:59

6. To make this work with out error I had to add:
View Tutorial          By: Jester at 2009-03-26 15:25:59

7. This tutorial was absolutly amazing!
Simple

View Tutorial          By: Anita at 2009-05-09 06:29:21

8. Thanks a lot !
View Tutorial          By: Kalander bava ta at 2012-11-04 08:07:15

9. this is simple and informative.thanks
View Tutorial          By: amrita at 2011-11-12 14:32:58

10. You may add STAX parser example also to complete t
View Tutorial          By: Satyam Jaiswal at 2014-11-25 05:48:59