decode a code where k=5 ,j=9(k+=k++ - ++j + k)
Answers
Answered by
5
Answer:
k=5 ,j=9;
(k+=k++ - ++j + k) this means k = k + k++ - ++j + k
This question contains prefix and postfix operations
k= 5+5-10+6
k=6 ANSWER
prefix is the operation where the value of the variable increment or decrement first then the value is used in expression.
postfix is the operation where the value of the variable is incremented or decremented after the previous value is used in expression
Answered by
1
Answer:k=k++-++j+k
5+5-10+6=6
Similar questions