adspace


What do you mean by casting a data type?

Answer Posted / Milan Kumar Mazumdar

"Casting is the process of converting one data type to another. In C#, this can be achieved using explicit or implicit casts. Explicit casts are necessary when the conversion may result in loss of data, and implicit casts occur automatically when the compiler determines it is safe."

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to assign Null value to Var?

1062


What is expression tree in c#?

997


How do you inherit a class into other class in c#?

992


Why can't we use a static class instead of singleton?

952


What is an abstract class c#?

967


Which namespaces are necessary to create a localized application?

1140