πŸ“Š C#
Q. What will be the output of the following code snippet when it is
executed?
Code:
int x = 1; float y = 1.1f; short z = 1; Console.Write.Line((float) x +
y * z - (x += (short) y));
  • (A) 0.1
  • (B) 1.0
  • (C) 1.1
  • (D) 11
πŸ’¬ Discuss
βœ… Correct Answer: (A) 0.1

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
263
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
91%
Success Rate