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. I have tried that but still getting the same error
View Tutorial          By: pra at 2008-04-14 21:55:44

2. Good Example
View Tutorial          By: Naresh at 2015-02-03 07:41:40

3. i manage to download all the 5 part and compile th
View Tutorial          By: Selva at 2008-04-09 07:53:09

4. how to multiply 2.54*0.7071 using only bitwise ope
View Tutorial          By: vindya at 2012-01-12 07:23:08

5. hi i unable to retrive am getting below excepti
View Tutorial          By: vignesh at 2015-03-25 17:14:58

6. excellent
View Tutorial          By: santosh at 2012-08-28 06:12:44

7. thanks for this example but i want the whether th
View Tutorial          By: Rupesh Chavan at 2010-03-14 07:36:31

8. hai
View Tutorial          By: ayyannan at 2011-01-21 21:27:35

9. Small modification.
System.out.println(&qu

View Tutorial          By: Rohit at 2012-02-07 16:22:52

10. Apache was failing to deliver php pages that were
View Tutorial          By: Ted at 2010-11-13 08:13:29