Skip to content
This repository has been archived by the owner on Jun 28, 2019. It is now read-only.

Commit

Permalink
Update ex2-76.c
Browse files Browse the repository at this point in the history
C中应该是(x << 5) - (x << 1)
  • Loading branch information
fewtime committed Nov 7, 2014
1 parent a1a9d45 commit 269dba3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercise/ex2-76.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ int main(void)
t = (x << 3) + x;
printf("%d * %d = %d\n", x, 9, t);

/* C. K=30: (1<<5) - (1<<2) */
t = (x << 5) - (x << 2);
/* C. K=30: (1<<5) - (1<<1) */
t = (x << 5) - (x << 1);
printf("%d * %d = %d\n", x, 30, t);

/* D. K=-56: (1<<3) - (1<<6) */
Expand Down

1 comment on commit 269dba3

@AllstarVirgo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A:x<<2+x

Please sign in to comment.