Quantcast
Channel: Int - Char.....Why is it legal?
Viewing all articles
Browse latest Browse all 6

Int - Char.....Why is it legal?

$
0
0

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 -= (int)'0'

http://msdn.microsoft.com/en-us/library/x9h8tsay%28v=vs.80%29.aspx


Resolving n Evolving in C# (http://jeanpaulva.com)


Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>