initial checkin from subversion
This commit is contained in:
16
shiftop.c
Normal file
16
shiftop.c
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <stdio.h>
|
||||
int main ()
|
||||
{
|
||||
signed int x1;
|
||||
unsigned int x2;
|
||||
x1 = -1;
|
||||
x2 = x1;
|
||||
fputs("\x1b[2J", stdout);
|
||||
printf ("\n Norm: %04d d", x1);
|
||||
printf ("\n Rechts (VZ): %04d d", x1 >> 2);
|
||||
printf ("\n Links (VZ): %04d d", x1 << 2);
|
||||
printf ("\n Norm: %04u u", x2);
|
||||
printf ("\n Rechts %04u u", x2 >> 2);
|
||||
printf ("\n Links %04u u", x2 << 2);
|
||||
return(0);
|
||||
}
|
||||
Reference in New Issue
Block a user