Georgia State University

Department of Computer Science


CSC 2311
                                                                                               Jaman L. Bhola


Spring 08 - Assignment #1 -  Due Thursday 1/17/08

 

Note: For all assignments, always use comments to explain your program (step by step)

 

Write, compile and execute a C++ program to determine how many bytes and the addresses your computer uses to store the following:

i.                    character

ii.                  integer

iii.                short integer

iv.                long integer

vi.                double.

                vii          float

Name the program: address_size.cpp

 

 

What to turn in

 

1.      A 3.5 inches floppy disk (IBM compatible) OR a CD, consisting of a .cpp and a .exe file for the program above. MAKE SURE THAT YOUR DISK IS VIRUS CLEAN.

2.      A print out of the .cpp file (source code).

3.      Make sure that your name is written clearly both on the print out and the disk.