What do you mean by casting a data type?



What do you mean by casting a data type?..

Answer / 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

More C Sharp Interview Questions

What are the 2 types of data types available in c#?

1 Answers  


What is the difference between returning iqueryable vs ienumerable?

1 Answers  


What is static and use of it?

1 Answers  


Explain the difference between passing parameters by value and passing parameters by reference with an example?

1 Answers  


Valuetype/reference type?

6 Answers   Microsoft,


What is meaning of type safety in c#?

1 Answers  


What are constants in c#?

1 Answers  


What is difference between assembly and dll?

1 Answers  


What are properties and indexer?

1 Answers   TCS,


What does string format do?

1 Answers  


What does break do in loop?

1 Answers  


Explain how do you debug an asp.net web application?

1 Answers  


Categories