+ 1

What is use of the prefix operator

a prefix operator used for incrmentig or decrementing a value aftter a operation is performed

25th Dec 2016, 2:41 AM
ramana babu pasupuleti
ramana babu pasupuleti - avatar
1 Answer
0
Performance If you do not need the previous value, make it a habit to use pre-increment. Semantic i++ says increment i, interested in the previous value. ++i says increment i, interested in the current value or increment i, no interest in the previous value.
1st Feb 2017, 1:22 PM
Felipe Cruz
Felipe Cruz - avatar