What does <<TT>B>a mean ?

This is a discussion on What does <<TT>B>a mean ? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I have been reading this document on C programming, and I came to this, and I don't get it, so ...

  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
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,484
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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

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