C# Programming - Datatypes - Discussion

Discussion :: Datatypes - General Questions (Q.No.4)


Which of the following statements is correct?

[A]. Information is never lost during narrowing conversions.
[B]. The CInteger() function can be used to convert a Single to an Integer.
[C]. Widening conversions take place automatically.
[D]. Assigning an Integer to an Object type is known as Unboxing.
[E]. 3.14 can be treated as Decimal by using it in the form 3.14F.

Answer: Option C


No answer description available for this question.

Manjeet said: (Jul 19, 2012)  
What are widening conversions ?

Sachin Tiwari said: (Jan 17, 2013)  
A widening conversion changes a value to a data type that can accommodate any possible value of the original data.

Samir said: (Oct 25, 2015)  
int a = 10;
long b = a; //This is widening conversion small to big.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.