Learn How to Program in C

by
Dr. Kristin Switala

Introduction

Directives

Variables

Conditionals

Loops

Arrays

Pointers

Strings

Functions

Structures


Site Map

Review: Pointers (a)

Instructions: Think about each question and write the answer in your notebook.


General Questions

1. Which number system uses only 0 and 1?

2. What numbers and letters does the Hexadecimal system use?

3. What is a byte?

4. How do we label the address of each byte?


Binary to Decimal Conversions

1. Convert this binary number to a decimal: 0101 0110

2. Convert this binary number to a decimal: 1111 0000

3. Convert this binary number to a decimal: 1001 1100

4. Convert this binary number to a decimal: 0001 0011


Hex to Decimal Conversions

1. Convert this hexadecimal number to a decimal: C9

2. Convert this hexadecimal number to a decimal: E6

3. Convert this hexadecimal number to a decimal: 45AC

4. Convert this hexadecimal number to a decimal: D8F4


Hex to Binary Conversions

1. Convert this hexadecimal number to a binary: 0x4567

2. Convert this hexadecimal number to a binary: 0xA3F6

3. Convert this hexadecimal number to a binary: 0x92C3

4. Convert this hexadecimal number to a binary: 0xE7B2

Copyright
© 2001
Kristin Switala
Hosted by www.Geocities.ws

1