C# Programming - Datatypes - Discussion

Discussion Forum : Datatypes - General Questions (Q.No. 4)
4.
Which of the following statements is correct?
Information is never lost during narrowing conversions.
The CInteger() function can be used to convert a Single to an Integer.
Widening conversions take place automatically.
Assigning an Integer to an Object type is known as Unboxing.
3.14 can be treated as Decimal by using it in the form 3.14F.
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
3 comments Page 1 of 1.

Samir said:   10 years ago
int a = 10;
long b = a; //This is widening conversion small to big.
(2)

Sachin tiwari said:   1 decade ago
A widening conversion changes a value to a data type that can accommodate any possible value of the original data.
(1)

Manjeet said:   1 decade ago
What are widening conversions ?

Post your comments here:

Your comments will be displayed after verification.