Q. What will be the output of: echo (int) ((bool) 'false');

  • (A) 0
  • (B) 1
  • (C) false
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) 1
Explanation: Non-empty strings evaluate to true, so casting results in 1.
Explanation by: Mr. Dubey
Non-empty strings evaluate to true, so casting results in 1.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
67
Total Visits
πŸ“½οΈ
10 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
90%
Success Rate