Get 50% Discount on All Your Purchases at PrepAway.com - Latest Exam Questions This is ONE TIME OFFER 50% Enter your email address to receive your 50% off dicount code: A confirmation link will be sent to this email address to verify your login. GET YOUR DISCOUNT CODE * We value your privacy. We will not rent or sell your email address.
50% Enter your email address to receive your 50% off dicount code: A confirmation link will be sent to this email address to verify your login. GET YOUR DISCOUNT CODE * We value your privacy. We will not rent or sell your email address.
SPECIAL OFFER: GET 50% OFF 50% Use Discount Code: BRIEF50 A confirmation link was sent to your e-mail. Please check your mailbox for a message from support@prepaway.com and follow the directions. Shop Now
50% Use Discount Code: BRIEF50 A confirmation link was sent to your e-mail. Please check your mailbox for a message from support@prepaway.com and follow the directions. Shop Now
What is the output of the following code: echo "1" + 2 * "0x02"; seenagapeAugust 16, 2016 What is the output of the following code: echo “1” + 2 * “0x02”; A.1 B.3 C.5 D.20 E.7 Show Answer
SM Farhad Hossain says: May 1, 2016 at 8:06 am Answer: is { A. 1 } Description : first 2 * “0x02” // “0x02” is string because of double quotation 2 * “0x02” = 0 1+0 = 1 1 1
Mia says: August 29, 2017 at 4:12 am Could you please explain why 2 * “0x02” would return 0? Since “0x02” should be equal to the decimal value 2, this would run as 2 * 2 = 4. 0 0
ruslanbes says: May 1, 2016 at 8:58 pm @SM Farhad Hossain “0x02” is typecasted to hexadigit number. The given answer is correct 0 0
SM Farhad Hossain says: May 2, 2016 at 8:27 am before PHP 7 this will output 5 all php 7 will output 1 0 0
Mia says: August 29, 2017 at 4:06 am Can you explain why this would occur according to you? Because when I tested this with PHP 7.0.0 (DEV), it did echo out 5. 0 0
Answer: is { A. 1 }
Description : first 2 * “0x02” // “0x02” is string because of double quotation
2 * “0x02” = 0
1+0 = 1
1
1
Could you please explain why 2 * “0x02” would return 0?
Since “0x02” should be equal to the decimal value 2, this would run as 2 * 2 = 4.
0
0
@SM Farhad Hossain
“0x02” is typecasted to hexadigit number. The given answer is correct
0
0
before PHP 7 this will output 5
all php 7 will output 1
0
0
Can you explain why this would occur according to you?
Because when I tested this with PHP 7.0.0 (DEV), it did echo out 5.
0
0
C
0
0