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. Nice n simple ex!!!!!!!!!!!!!!!!!!!
View Tutorial          By: Siya at 2010-11-17 07:08:34

2. I am getting a blank page. Closed the table tag an
View Tutorial          By: Harshal at 2013-02-19 14:56:35

3. excellent explanation...............Thanks for mak
View Tutorial          By: Kiran Leo at 2012-12-08 06:41:26

4. where i can find Messageressourse.properties......
View Tutorial          By: sanjiv at 2013-09-07 06:59:19

5. examples are very use full
View Tutorial          By: keerthe at 2010-08-12 23:00:21

6. Excellent site.
View Tutorial          By: anonymous at 2011-11-06 12:07:14

7. This one is helpful. Thanks

Is th

View Tutorial          By: Umesh Aawte at 2009-06-23 06:43:55

8. why we use int with main
View Tutorial          By: praveen at 2012-03-26 04:28:20

9. My friend, How to user ArrayList?
View Tutorial          By: Joao Neto at 2009-06-04 06:28:17

10. 510
1020
2040
4080
816

View Tutorial          By: sky at 2010-07-17 06:54:46