How can i use For Loop initialize value start depend by the condition : [enter image description here][1]         
For Loop k initialize value assign if char[i] = ' ' get space then K value is assign i -1  ,Otherwise k value is start k = i value, my first condition is work if char of array get space, But when not get space  k value is not assign  k = i value 

always my first condition work k = i-1,

for(k = (Char[i] ==' '? i-1 :i); j<k ; j++,k--)[enter image description here][1]


  [1]: https://i.stack.imgur.com/dDdiQ.png                