暨南大学2021计组实验2.docVIP

  • 1
  • 0
  • 约小于1千字
  • 约 2页
  • 2022-12-26 发布于广东
  • 举报
Lab 2: Manipulating Bits 1 Introduction The purpose of this lab is to become more familiar with bit-level representations and arithmetic of integers in chapter 2. Youll do this by solving a series of programming puzzles. 2 Type This is an individual project. 3 Instructions Start by copying bits.c to a directory on a Linux machine in which you plan to do your work. You will be modifying this file. The bits.c file contains a skeleton for each of the 5 programming puzzles. Your assignment is to complete each function skeleton using only straightline code for the integer puzzles (i.e., no loops or conditionals) and a limited number of C arithmetic and logical operators. Specifically, you are only allowed to use the following eight operators: ! ~ ^ | + 4 Handin Results, Snapshots and Codes are inserted into Lab Report. You can hand in before the deadline.

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档