Results 1 to 12 of 12

What is explicit casting?

This is a discussion on What is explicit casting? within the Programming forums, part of the Web Designing & Development category; Explicit casting in the process in which the complier are specifically informed to about transforming the object. [COLOR=blue] Example [/COLOR] ...

  1. #1
    Senior Member
    Join Date
    Jul 2010
    Location
    India
    Posts
    146

    Default What is explicit casting?

    Explicit casting in the process in which the complier are specifically informed to about transforming the object.


    [COLOR=blue]Example[/COLOR]
    long i = 700.20;
    int j = (int) i; //Explicit casting

  2. #2
    Junior Member
    Join Date
    Nov 2010
    Posts
    4

    Default Re: What is explicit casting?

    work in CS3 and don’t have access to Vectors because I target FP9. But it is because Arrays can hold any type of data that it is necessary to explicitly cast for maximum performance,

  3. #3
    Senior Member
    Join Date
    Nov 2010
    Posts
    106

    Default Re: What is explicit casting?

    Even though some techniques are more successful than others, there are many things that need to be accounted for.


  4. #4
    Junior Member
    Join Date
    Sep 2010
    Posts
    25

    Default Re: What is explicit casting?

    Casting is a process of pouring molten metal into a mold to form a part. After removing from the mold, the part may be machined and heat treated for use. The part is referred to as a casting.

  5. #5
    Member
    Join Date
    Nov 2010
    Posts
    80

    Default Re: What is explicit casting?

    Hi,

    [COLOR=blue]Explicit Casting:-[/COLOR]An explicit cast is a cast that you must specifically invoke, with either the CAST AS keywords or with the cast operator ( :: ). The database server does not automatically invoke an explicit cast to resolve data type conversions. The EXPLICIT keyword is optional; by default, the CREATE CAST statement creates an explicit cast.

  6. #6
    Senior Member
    Join Date
    Sep 2010
    Posts
    152

    Default Re: What is explicit casting?

    Explicit type conversion is a type conversion which is explicitly defined within a program (instead of being done by a compiler for implicit type conversion).
    double da = 5.5;
    double db = 5.5;
    int result = (int)da + (int)db;
    //Result would be equal to 10 instead of 11.

  7. #7
    Senior Member
    Join Date
    Mar 2011
    Posts
    110

    Default Re: What is explicit casting?

    Thanks a lot for sharing your knowledge with all,It is a very useful answer.

  8. #8
    Junior Member
    Join Date
    Apr 2011
    Posts
    5

    Default Re: What is explicit casting?

    Explicit casting in the process in which the computer are specifically informed to about transforming the object. Traditional explicit type casting allows to convert any arrow into any added arrow type, independently of the types they point to. The subsequent call to member result will produce either a run time error or a unexpected result.

  9. #9
    Member
    Join Date
    Apr 2011
    Posts
    32

    Default Re: What is explicit casting?

    nce a while I get the question on using the "as" operator in C# as opposed to casting.

    For example:
    1. Customer c = obj as Customer;
    2. Customer c = (Customer) obj; //explicit cast

  10. #10
    Junior Member
    Join Date
    Apr 2011
    Posts
    5

    Default Re: What is explicit casting?

    Natural herbal erection enhancers are available in the market that treats erectile dysfunctions. The distributorship channel is most important when considering after sales service. Direct contact between the retailer and the manufacturer is usually best but not in all cases.

  11. #11
    Member
    Join Date
    Mar 2011
    Posts
    73

    Default Re: What is explicit casting?

    Hello..

    Explicit casting, is when the code directly instructs the compiler of what type the given object or variable should be cast to.

  12. #12
    Senior Member
    Join Date
    Apr 2011
    Posts
    128

    Default Re: What is explicit casting?

    An explicit cast is a cast that you must specifically invoke, with either the CAST AS keywords or with the cast operator./..............