0

What is the output of this code if a=5

a=++a + a++ + ++a + a++ + ++a

9th Dec 2016, 6:50 AM
syed sulaiman
syed sulaiman - avatar
2 odpowiedzi
+ 1
<?php $a=5; echo (++$a + $a++ + ++$a + $a++ + ++$a); ?> Output = 36
9th Dec 2016, 7:46 AM
Vitalie Fiodorov
Vitalie Fiodorov - avatar
0
a = 6+6+7+7+8; so ans is 34 but after this statement value of a will be 36 am I correct?
9th Dec 2016, 7:22 AM
Morpheus
Morpheus - avatar