+ 2
Casting
what about casting in c# why used it ?
4 Answers
+ 5
It is a way of changind data types of variables.
"123" is a string
123 is an integer
+ 3
in case you have to cast a short to an integer for example
+ 2
why minimum value of int ?
https://code.sololearn.com/cv5rAP5si5f5/?ref=app
+ 1
yes, like
int a = 567;
long b = a;
it's upcast ..secure casting with no data loses.
Downcast is insecure..