Project 4 – memory

In this project, you are to perform the following:

  1. Reserve a 1024-byte block of memory.
  2. Fill that block of memory with random characters.
  3. Create an array, which is also 1,024 bytes in size.
  4. Copy the contents of the memory block into the array.
  5. Create a string that is limited to 1,024 bytes and is set using the capacity function.
  6. Copy the contents of the memory block into the string.

At this point, you may be wondering why we have three identical blocks of memory. The simple reason is that you will now create a piece of code that will rotate each member in turn 3 times using a simple left-bit rotation and then 3 times to the right.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset