advanced typecast

This is a discussion on advanced typecast within the C Programming forums, part of the General Programming Boards category; Hi.. Is there anyone that can help me with a clarifying comments on how typecast is used, I know the ...

  1. #1
    Registered User
    Join Date
    Dec 2005
    Location
    Denmark
    Posts
    13

    advanced typecast

    Hi..

    Is there anyone that can help me with a clarifying comments on how typecast is used, I know the basic rules about typecast, but I wout like to learn the little more advanced function/rules and how you use it .

    What I’m looking for could be a link, about the subject.

    Thanks..
    DK – Søren

    PS. I have tried the book, The C programming language, with no look.

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    There is nothing advanced about it. It's simply making an alias of another data type to a new name. You can make a new type called 'foo', that's really an int, a type called 'bar', that's a struct of something you make up, etc. There is nothing advanced really. It's just a way to rename something.


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

  3. #3
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Do you just string words together at random, or are you actually trying to form a complete thought?


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

  4. #4
    Cached User mako's Avatar
    Join Date
    Dec 2005
    Location
    Germany.Stuttgart
    Posts
    69
    Quote Originally Posted by quzah
    Do you just string words together at random, or are you actually trying to form a complete thought?


    Quzah.
    *lol*

  5. #5
    Registered User
    Join Date
    Jun 2005
    Posts
    6,203
    dynamic casting is a C++ concept, not a C concept.

  6. #6
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,231
    Sorry, I thought I am in C++ forum .
    By default, C compiler doesn't permit some assignments of different types (Strong Typed concept). But you can force it to do so by typecasting.
    Last edited by siavoshkc; 03-07-2006 at 03:28 AM.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What's advanced c++ contents ?
    By toysoldier in forum C++ Programming
    Replies: 8
    Last Post: 09-27-2004, 08:12 PM
  2. Advanced? Not Advanced? Anyone?
    By Jotun in forum C++ Programming
    Replies: 3
    Last Post: 04-28-2004, 08:02 PM
  3. Advanced but yet general
    By Rhodium in forum C Programming
    Replies: 6
    Last Post: 08-09-2003, 12:46 PM
  4. Advanced Linux Programming
    By drdroid in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 07-24-2003, 02:01 PM
  5. you advanced people, read this
    By Leeman_s in forum C++ Programming
    Replies: 2
    Last Post: 10-04-2001, 08:26 PM

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