Thread: What does <<TT>B>a mean ?

  1. #1
    C++ SharK The SharK's Avatar
    Join Date
    Mar 2004
    Location
    Denmark
    Posts
    62

    What does <<TT>B>a mean ?

    I have been reading this document on C programming,
    and I came to this, and I don't get it, so I thought that
    you might help me out here


    This always confuses beginners, because they aren't used to seeing the variable on both sides of the equal-sign. All this means is that a has one added to it to produce a new value, and this value is stored back in the location called <<TT>B>a. If you're worried, try thinking about it as:
    Code:
    temp = a+l;
    a    = temp;
    The thing I don't understand is: <<TT>B>a


    regards,


    The SharK
    Studying programming languages,
    you'll ALWAYS be a student ;-)

  2. #2
    Registered User Dante Shamest's Avatar
    Join Date
    Apr 2003
    Posts
    970
    Did you get it from here?

    It looks like a HTML typo. I think the author meant to bold a.

  3. #3
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    What is the exact piece of code that <<TT>B>a is contained in?

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Looks like a crummy attempt to make the letter 'a' bold, like the other 'a' in the same sentence.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    C++ SharK The SharK's Avatar
    Join Date
    Mar 2004
    Location
    Denmark
    Posts
    62
    Hi Dante Shamest

    Yes, it's exactly THAT piece of code I'm
    referring to
    Studying programming languages,
    you'll ALWAYS be a student ;-)

Popular pages Recent additions subscribe to a feed