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. hai, i tried the abvoe code, m getting the follwin
View Tutorial          By: charan at 2011-10-20 12:59:59

2. what is the use of int getch(void)
and unge

View Tutorial          By: sania at 2014-06-04 17:15:30

3. Hi,
My problem is with daybook. In

View Tutorial          By: Priyesh at 2011-07-06 06:34:33

4. My exchange email account is only partially delete
View Tutorial          By: ali at 2010-12-30 02:38:14

5. Thnx. Very Useful Code...
View Tutorial          By: Ankur Pandya at 2010-09-27 05:14:35

6. i want some more info to make my final project.
View Tutorial          By: Arshid saeed at 2010-02-18 08:18:45

7. thxxx :) very simple explanation
View Tutorial          By: mohamed at 2012-09-09 04:16:06

8. Its working ,,, gud stuff.
View Tutorial          By: Atul at 2011-07-21 10:34:44

9. I have followed all steps but it is giving null po
View Tutorial          By: she at 2013-01-14 06:02:27

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