Giter VIP home page Giter VIP logo

ece160-hw02's Introduction

ece160-hw02

For this assignment, you will need to fork this respotiory (see the upper-right corner of this page). Once you have your own fork, clone it like you would with any other repository. Edit the methods in hw02.c to return the correct values, and then commit and push your changes to your fork.

You will need to implement two functions:

  • print_int_ranges should determine the size of a short, int, unsigned int, and long on the runtime system and compute the value ranges of each. Note that this is platform dependent; the output will be different depending on where you run the program, but you can use sizeof to ensure that your function is correct on any system.
  • is_bit_set takes in a value and a bit index and returns whether the bit in the value at that index is set. Let index 0 be the least significant bit.

Details about the implementations of the functions in hw02.c are in the comments.

ece160-hw02's People

Contributors

cooper-ece160 avatar purplenicole730 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.