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. Great!! Many thanks!
View Tutorial          By: Louis at 2013-06-01 23:16:41

2. nice tutorial with discussion
View Tutorial          By: Md Firoz at 2012-01-07 11:00:29

3. What is the difference between an Interface and an
View Tutorial          By: RAJA at 2015-06-26 17:28:31

View Tutorial          By: Agnes at 2010-06-25 22:34:29

5. Its an excellent example to learn this concept!!
View Tutorial          By: Koustav Routh at 2009-12-18 11:19:03

6. Ask to google.
View Tutorial          By: John at 2013-05-03 22:58:23

7. really nice and perfect ! thnak you very much for
View Tutorial          By: arash at 2013-07-16 10:58:45

8. hi!!!!!!!!! MR. RAMLAK will u plz tell the methode
View Tutorial          By: balwant at 2008-11-10 17:19:44

9. Dude,
Atleast indent and try to make sense

View Tutorial          By: Phani at 2015-03-19 16:51:57

10. really a gud work for xml parsing readers
View Tutorial          By: shreya at 2010-07-02 02:35:04