Strange Operator

From: Simon Lewis (sheepboy69uk_at_NOSPAMyahoo.com)
Date: 03/31/04


Date: Wed, 31 Mar 2004 12:40:39 +0100

Dear All,

I have been stepping though some code, and came across the following
operator:

value >>= 1;

(value is an int)

It seems to be assigning 1 to value, could anyone shed some light on its
meaning?

Kind Regards

Simon Lewis



Relevant Pages

  • Re: Segmentation fault
    ... main should have return type int. ... You wanted to compare fp to NULL but actually you are assigning NULL to ... Duplicating every alternate character! ...
    (comp.lang.c)
  • Re: DoModal() Dialog box fails in eVC4 to VS2005 Migration
    ... Anyway when stepping through the MFC code it throws an ... if, hInst)) ... After stepping through it I realize that the Dlg.DoModal ... CDRVCEDLGS_API int WINAPI CdrvLInitDialog( ...
    (microsoft.public.vc.mfc)
  • Re: possibly undefined behavior
    ... int main ... It would be UB if there were not a sequence point involved in the ... current value of x and assigning a new value, ... in my short-lived struggle against reality. ...
    (comp.lang.c)
  • Re: possibly undefined behavior
    ... int main ... It would be UB if there were not a sequence point involved in the ... current value of x and assigning a new value, ... preventing the assignment to x to occur before the function call and ...
    (comp.lang.c)
  • Re: Newbie question
    ... static int init=0; ... This creates an array of ten null references to A's. ... Try actually assigning to ainside your for loop. ... Normal console print output is buffered, ...
    (comp.lang.java.help)