Reputation: 301
I found that the constant literal is computed at compile time for example:int a=10+20;
but when i try to use int b=10/0;
i find that it is computed at run time.
Can you please tell me why this constant literal is computed at run time?
Thank you.
Upvotes: 0
Views: 142