casts

This is a discussion on casts within the C Programming forums, part of the General Programming Boards category; can somebody please explain what a cast is ?...

  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    43

    casts

    can somebody please explain what a cast is ?
    Last edited by BlaX; 03-08-2008 at 02:08 PM.

  2. #2
    Registered User
    Join Date
    Mar 2008
    Posts
    10
    When you cast a variable you are changing the type. Here is a good site to explain things: http://www.cplusplus.com/doc/tutorial/typecasting.html


    -Dustin
    http://www.theCprogrammer.com

  3. #3
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    Recent previous discussion of casting:

    type casting

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C-style casts removed
    By KIBO in forum C++ Programming
    Replies: 2
    Last Post: 03-27-2009, 04:32 AM
  2. Am I using casts properly?
    By Dondrei in forum C++ Programming
    Replies: 7
    Last Post: 03-14-2009, 01:51 AM
  3. Overloading casts
    By CodeMonkey in forum C++ Programming
    Replies: 2
    Last Post: 12-24-2006, 11:11 PM
  4. Templates and type casts
    By ventolin in forum C++ Programming
    Replies: 2
    Last Post: 05-27-2004, 08:06 PM
  5. C++ Faq-lite (Pointer/Reference casts are evil? No.)
    By lightatdawn in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 03-21-2003, 04:05 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21