Int - Char.....Why is it legal?
That's not a bad suggestion Jean Paul...It's just that it throws me off with int and char. If it is a long and an int i can see an implicit cast. I mean it makes sense now that you guys have...
View ArticleInt - Char.....Why is it legal?
No Problem Kumal.. This happens in our coding life.. we used to have a way of completing the tasks rather than going deep with learnings.In fact in the long run the learning investment will pay off.For...
View ArticleInt - Char.....Why is it legal?
Thanks guys for the quick response....Ha!! Dang I am ashamed....So i have been a c# developer for 6 years, does it make me a bad developer because i dont know this ;-)
View ArticleInt - Char.....Why is it legal?
The char is of unicode to store charcters.In your case '0' is representing a char of value 48.There is implicit conversion of char to int, means no need to use y -=...
View ArticleInt - Char.....Why is it legal?
The char will get converted to its ascii integer value. The Char struct implements a covertable ToInt32 methodhttp://msdn.microsoft.com/en-us/library/bb300956.aspx.
View ArticleInt - Char.....Why is it legal?
The code below y will return 72. I never knew we can do that, I mean, I understand char is just a code for the character. But never thought it is legal to minus a char from an int. Can someone...
View Article