What is the value of "i" in the following code?
string s= "123";
int i = (int)s;
Conversion is not possible between in-compatible datatypes, here int and strings are incompatible data types. We must use convert class for conversion.
Back To Top