<?php $RESULT = 11 + 011 + 0x11; echo "$RESULT"; ?> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

<?php $RESULT = 11 + 011 + 0x11; echo "$RESULT"; ?>

can anyone solve this..... What is ans of this......

27th Apr 2019, 4:38 PM
Sourabh Rathore
Sourabh Rathore - avatar
2 Answers
+ 1
You can run this on your own in the code playground 11 = 11 (decimal) 011 = 9 0x11 = 17 Ans is 37
27th Apr 2019, 4:51 PM
Seniru
Seniru - avatar
+ 2
11 + 11 in octal + 11 in hex first convert them all to decimal first its should be pretty easy because evertything is 11
27th Apr 2019, 4:48 PM
Taste
Taste - avatar