Thread: typecasting

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Quote Originally Posted by mrafcho001
    ²
    You can see all the ASCII characters by typecasting and then press ALT and the number on the number pad and get the desired effect

    and other things, typecasting is to be avoided
    Do you just like to talk out your ass or what? Nearly ever post of yours I've come across is full of gems like these.


    Typecasting is used to convert one type of an object to another. For example, if you have a floating point number, and you wan't to treat it as an integer, you may type cast it. The language itself has automatic type promotion for the basic types: char to short int to int to long int, float to double, and the like. Typecasting is used for when there are no such conversions and you need one.


    Quzah.
    Hope is the first step on the road to disappointment.

  2. #2
    Registered User mrafcho001's Avatar
    Join Date
    Jan 2005
    Posts
    483
    whats your problem?

    Typecasting can be used for the reason i pointed above... and it is to be avoided, there is like nothing wrong with what i said..
    My Website
    010000110010101100101011
    Add Color To Your Code!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Pointer Arithmetic and Typecasting
    By pobri19 in forum C Programming
    Replies: 2
    Last Post: 03-19-2009, 11:06 PM
  2. recv() typecasting error
    By jmd15 in forum Networking/Device Communication
    Replies: 7
    Last Post: 05-19-2006, 03:32 PM
  3. c and c++ style typecasting confusion
    By vaibhav in forum C++ Programming
    Replies: 14
    Last Post: 08-30-2005, 07:29 AM
  4. Typecasting a void* to a function pointer
    By Procyon in forum C++ Programming
    Replies: 2
    Last Post: 01-14-2004, 05:43 PM
  5. typecasting
    By JaWiB in forum C++ Programming
    Replies: 14
    Last Post: 06-01-2003, 10:42 PM