Is it a good practice to use ternary operation in for loop condition. I am asking this because i have come across the situation where in ternary operation will resolve my issue in for loop condition.
对于 例如 :
for( short i = 0 ; i < count ; i++ ){
for( short j = 0 ; j < ( ( x[i] < y[i] ) ? x[i] : y[i] ) ; j++ ){ //Here I am using ternary operation at for loop condition place
//.....
//.....Some Code Here .......
//.....
}
}