CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Where the Cast Goes Changes Division

C# code walkthrough · Question 23
hardCasting

Code

Read carefully. What does this print?
1double a = (double)(1 / 2);
2double b = (double)1 / 2;
3Console.WriteLine($"{a} {b}");

Your answer