Ask questions which are clear, concise and easy to understand.
Ask QuestionPosted by Kunal Bajaj 4 years, 10 months ago
- 1 answers
Posted by Suraj Roy 6 years ago
- 1 answers
Mahima Narang 5 years, 11 months ago
Posted by Sewasingh Thind 6 years ago
- 1 answers
Posted by Prince Jain 6 years ago
- 1 answers
Posted by Bijitha Binu 6 years ago
- 1 answers
Posted by Priya Soy 6 years ago
- 0 answers
Posted by Shakeel Shaik Dawood 4 years, 7 months ago
- 1 answers
Sia ? 4 years, 7 months ago
Implicit casting doesn't require a casting operator. This casting is normally used when converting data from smaller integral types to larger or derived types to the base type.
int x = 123;
double y = x;
In the above statement, the conversion of data from int to double is done implicitly, in other words programmer don't need to specify any type operators.
For example, the values of ushort and char are effectively interchangeable, because both store a number between 0 and 65535. You can convert values between these types implicitly.
There are many implicit conversions of simple types; bool and string have no implicit conversions, but the numeric types have a few. For reference, the following table shows the numeric conversions that the compiler can perform implicitly (remember that chars are stored as numbers, so char counts as a numeric type).
TYPE CAN SAFELY BE CONVERTED TO
byte short, ushort, int, uint, long, ulong, float, double, decimal
sbyte short, int, long, float, double, decimal
short int, long, float, double, decimal
ushort int, uint, long, ulong, float, double, decimal
int long, float, double, decimal
uint long, ulong, float, double, decimal
long float, double, decimal
ulong float, double, decimal
float double
char ushort, int, uint, long, ulong, float, double, decimal
Explicit conversion: Explicit casting requires a casting operator. This casting is normally used when converting a double to int or a base type to a derived type.
double y = 123;
int x = (int)y;
In the above statement, we have to specify the type operator (int) when converting from double to int else the compiler will throw an error.
Posted by Mohit Kumar 6 years ago
- 0 answers
Posted by Shikha Rajoria 6 years ago
- 0 answers
Posted by Aaditya Prabal Chawla 6 years ago
- 0 answers
Posted by Snigdhadeep Sengupta 6 years ago
- 0 answers
Posted by Arshad Arshad 6 years ago
- 0 answers
Posted by Ankit Chansoria 6 years ago
- 0 answers
Posted by Krishna Kumpawat 6 years, 1 month ago
- 1 answers
Girish Annamalai 6 years, 1 month ago
Posted by Prachi Kaushik 6 years, 1 month ago
- 0 answers
Posted by Pankaj Sahani 6 years, 1 month ago
- 0 answers
Posted by Hemant Singh 6 years, 1 month ago
- 0 answers
Posted by Md Hùsśaìñ 6 years, 1 month ago
- 3 answers
Riya Kumari 5 years, 11 months ago
Yogita Ingle 6 years, 1 month ago
Python has one special literal called 'None'. The 'None' literal is used to indicate something that has not yet been created. It is also used to indicate the end of lists in Python.
Posted by Prakash Thapa 6 years, 1 month ago
- 1 answers
Posted by Minakshi Meena 6 years, 1 month ago
- 3 answers
Riya Kumari 5 years, 11 months ago
Ayush Jain Nkps Rajawas 6 years, 1 month ago
Posted by Anjali Jha 6 years, 1 month ago
- 1 answers
Ayush Jain Nkps Rajawas 6 years, 1 month ago
Posted by Chahat Singh 6 years, 1 month ago
- 0 answers
Posted by Divij Mehra 6 years, 1 month ago
- 0 answers
Posted by Yogesh Sangwan 6 years, 1 month ago
- 0 answers
Posted by Sahil Jangid 6 years, 2 months ago
- 0 answers
Posted by Karan Gamer 6 years, 2 months ago
- 0 answers

myCBSEguide
Trusted by 1 Crore+ Students

Test Generator
Create papers online. It's FREE.

CUET Mock Tests
75,000+ questions to practice only on myCBSEguide app
myCBSEguide
Sakshi Singh 4 years, 10 months ago
11Thank You