Q. What is the output of intval('42abc')?

  • (A) 42
  • (B) 0
  • (C) Error
  • (D) 42abc
πŸ’¬ Discuss
βœ… Correct Answer: (A) 42
Explanation: intval() converts the string to an integer until non-digit is found.
Explanation by: Mr. Dubey
intval() converts the string to an integer until non-digit is found.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
63
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
86%
Success Rate