ELEKTOR FORUMS

Please log in to post a reply or subscribe / unsubscribe to topics

Topic: Meaning of +=

Author Post

PEPM1

5 posts

Popping In
Popping In

Read post 05-09-2010 14:22

Assignment 5.i On page 202 wants us to use shift operations.
When checking answer on page 602
temp += (adresl>>6);
is shown.
I can't seem to find the meaning of += on a page before page 202
I have seen a table on page 113 and 114 but don't show +=

As I have probably missed the page, what page explains in the meaning of += please?
Or is += a typing error?
Thank you.

GeenBert

64 posts

Frequent Visitor
Frequent Visitor

Read post 07-09-2010 17:27

You're right, it is missing in the table on page 113 for some reason. It should be added to the table after ++, as follows:

+= means increment with another value than 1

example: i+=8
after the operation i is incremented by 8

PEPM1

5 posts

Popping In
Popping In

Read post 18-12-2010 11:53

A bit late, but thank you for your explanation

Gerhard

3 posts

Popping In
Popping In

Read post 01-05-2011 18:30

Hi
i+=8 is the same as i=i+8.
It is a "C" shorthand method

PEPM1

5 posts

Popping In
Popping In

Read post 03-05-2011 00:37

GerhardHi
i+=8 is the same as i=i+8.
It is a "C" shorthand method


Thank you Gerhard

Please log in to post a reply or subscribe / unsubscribe to topics

Follow Elektor

      

Act now!

Bestseller

Microprocessor Design using Verilog HDL

This book is a practical guide to processor design in the real world. It presents the Verilog HDL in an easily digestible fashion and serves as a thorough introduction about reducing a computer architecture and instruction set to practice. 

Package Deals

Elektor Bundles

Check our Package Deals and save money! Discounts up to 19% now available!

Price Slashed

Elektor OSPV

This Open Source People Vehicle is perfect for factory halls, warehouses, hospitals, colleges, schools etc.

Elektor PCBs at 25% OFF